VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Image scale
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

19 Posts

Posted - October 09 2003 :  13:47:15  Show Profile  Reply with Quote
Does anyone know of a solution to scale images automaticaly. So when an image is uploaded it will scale to and appear in the icon and large format sizes ?

Thanks, David

Starting Member

45 Posts

Posted - October 09 2003 :  18:32:22  Show Profile  Visit ouresolutions's Homepage  Reply with Quote
Hi David,
I am not sure if it fits the bill for what you need specifically, but you may want to try Persits' ASPJPEG (http://www.aspupload.com/aspjpeg.html). I haven't used this particular product but have used their ASPEmail and ASPUpload and both are very solid products.


Our eSolutions
Go to Top of Page

VP-ASP Super User

249 Posts

Posted - October 09 2003 :  21:29:04  Show Profile  Reply with Quote
Couldn't you just add height or width parameters to your image tags? This wouldn't change the file size, but it would change the display size.


Go to Top of Page

Starting Member

United Kingdom
12 Posts

Posted - October 15 2003 :  07:08:18  Show Profile  Visit vineministries's Homepage  Reply with Quote

What I did was add width="100" wherever a thumbnail was due to be shown. By not setting the height I maintained the width / height ratio so the image did not become distorted but you could add the height parameter if you wanted. So my thumbnail images all look like this:

<img border="0" src="images/0745951090.jpg" width="100">

So now I only need to upload one copy of the image and then resize it depending on where it appears.

Hope this helps.


Edited by - vineministries on October 15 2003 07:09:00
Go to Top of Page

Starting Member

1 Posts

Posted - October 27 2003 :  20:10:01  Show Profile  Visit johnd's Homepage  Reply with Quote
Hi David,

I have used Pure ASP Upload Dreamweaver extension bundle from http://www.dmxzone.com/index.asp?TypeId=3&CatId=69 to create an image and resize add on facility for one of my vpasp sites. The bundle contains an upload and image resizer plus an image deleter - all of which work in conjunction with your database

I have created a page linked to a product which uploads any image of any size and automatically resizes it on the server to maximum stated pixels (height and width). A separate thumbnail is also created. I have used 300px for large and 120px for thumbnail. The server needs ASP.net or a special dll to be registered on the server (some hosts don't allow this).

The image file addresses are also automatically stored in the database product fields for image and large image. I have also created a delete product page that deletes all of the product images when the product is deleted.

My clients are overjoyed as they can now load any image file themselves (including straight from the digital camera) in a simple one step operation.

The bundle works with Dreamweaver and costs $129USD - which is well worth the cost as I use it on most of my image intensive sites. I could send you the files but I am not sure of the copyright involved in sending you the files if you don't have the software.

In a couple of days I can have a demo site separate from the shop site which will show you how it works - let me know if you are interested and I will send you the address.



Go to Top of Page

Starting Member

19 Posts

Posted - November 13 2003 :  10:09:55  Show Profile  Reply with Quote
Thank you everyone so much for your help, much appreciated. David

Go to Top of Page

Starting Member

United Kingdom
8 Posts

Posted - July 15 2005 :  04:55:01  Show Profile  Reply with Quote
I don't know if this of any help to anyone but I done a search on ASPJPEG and came across this thread.

I've used ASPJPEG to manage thumbnails on a site. My client has 3,000 existing images and I didn't want to have to tell them that they would also have to manage 3,000 thumbnails too!

I didn't want to display the full image in thumbnail view (by specifying the width within the img tag) so I used ASPJPEG to dynamically generate it each time.

Instead of using [formatimage cimageurl] I used this:

<img border="0" src="/extras/sendThumbnail.asp?path=[cimageurl]&width=200">

The sendThumbnail.asp contents is:

<% Option Explicit %>

Dim strPath, intWidth, Jpeg

strPath = Request("Path") ' Location to the image on the server
intWidth = Request("Width") ' Width

Set Jpeg = Server.CreateObject("Persits.Jpeg") ' Create instance of AspJpeg
Jpeg.Open Server.MapPath(strPath) ' Open source image

Jpeg.PreserveAspectRatio = True ' PreserveAspectRatio works from version 1.4 of AspJpeg

If Jpeg.OriginalWidth > Jpeg.OriginalHeight Then
Jpeg.Width = intWidth
jpeg.Height = intWidth
End If

Jpeg.SendBinary ' Send output to the browser

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000