Link to home
Start Free TrialLog in
Avatar of huang_ck
huang_ck

asked on

asp script or component to resize images automatically

Hi guys,

I am making a photo album which lets users upload their photos through the site, however I need to resize their images to become a thumbnail size and also rename the pictures name as well randomly, is there any free component to to do that?

thanks
ASKER CERTIFIED SOLUTION
Avatar of mvidas
mvidas
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also, though I'm assuming you want the thumbnail sized pic to save on load time, you can always 'resize' them using the img width/height/etc like
     response.write ("<img src=""" & f.Name & """ width=800><BR>")

I really think you werent referring to that, but I thought I'd throw it out there.
As for renaming the picture randomly, a script should be easy enough to write. If you'd like it in vbscript I can write one up quick for you (please provide an idea for what you want the names to be, unless you truly mean random); for javascript someone else would have to do that for you.
For mine, I used the image resizer and just added _small and _thumb to the filenames to distinguish between sizes