Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scale down pictures 2

Status
Not open for further replies.

fischadler

Programmer
May 31, 2002
258
MT
I have a page for people to upload their pictures to. After uploading the pictures, I want these people to see a list of thumbnails of the pictures they've uploaded. I can show the actual pictures they've uploaded in a reduced size using the height and with parameters in the <img> tag, but the pictures take the same amount of time to load as if they were in the actual size. Is it possible to have an ASP page create an actual thumbnail of a picture by reading the file and writing a new one in a smaller size?

Thanks!
 
As ChrisHirst mentioned, there are good third-party ASP Components that are easy to install on an IIS web server. Look for one that not only allows you to generate a thumbnail from an image, but that also allows you to stream that thumbnail image to the browser rather than create a new image file on disk. (Unless for your purposes having a static thumbnail file on disk is what your prefer. I prefer to generate thumbs on the fly -- works for small user bases, saves disk space at the cost of CPU time.)

I had not heard of csImageFile from Chestysoft.com, but I'm sure it works as recommened. I've used AspImage from ServerObjects
ASP.Net has libraries built in to do this -- no component required. Many ASP hosts also support ASP.net (in the same account). If you have ASP.Net available in your ASP hosting account, I can give you a complete ASP.Net script to stream thumbnails for your ASP application.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top