Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Client-side Scripting _ Resizing images

Posted by: CodeKing Sep 16 2006, 11:42 AM

I'm creating a site somewhat like flickr. People can upload their photos to an online album. They would upload the image and PHP would resize it to make a reasonable sized image and resize it again to make a thumbnail. Can Javascript resize the image to get it reasonable sized image before uploading it? It would shorten the upload time and save bandwidth. biggrin.gif

Posted by: Christian J Sep 16 2006, 12:31 PM

AFAIK JS can't resize the user's local image files, not even if he loads them in his browser (you can of course resize an IMG element, but that doesn't affect the image file).

Posted by: CodeKing Sep 16 2006, 01:44 PM

Thanks biggrin.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)