Author |
Topic |
|
plasma
Starting Member
19 Posts |
Posted - October 09 2003 : 13:47:15
|
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
|
|
ouresolutions
Starting Member
Australia
45 Posts |
Posted - October 09 2003 : 18:32:22
|
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.
Graeme
------------------------- Our eSolutions www.ouresolutions.com.au |
|
|
Jill
VP-CART Super User
USA
249 Posts |
Posted - October 09 2003 : 21:29:04
|
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.
Jill
|
|
|
vineministries
Starting Member
United Kingdom
12 Posts |
Posted - October 15 2003 : 07:08:18
|
David,
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.
Regards Shaun
Edited by - vineministries on October 15 2003 07:09:00 |
|
|
johnd
Starting Member
Australia
1 Posts |
Posted - October 27 2003 : 20:10:01
|
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.
Regards,
JohnD
|
|
|
plasma
Starting Member
19 Posts |
Posted - November 13 2003 : 10:09:55
|
Thank you everyone so much for your help, much appreciated. David
|
|
|
pmarsh
Starting Member
United Kingdom
8 Posts |
Posted - July 15 2005 : 04:55:01
|
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:
<%@ LANGUAGE="VBSCRIPT" %> <% 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 Else jpeg.Height = intWidth End If
Jpeg.SendBinary ' Send output to the browser %>
|
|
|
|
Topic |
|