Last post Jul 29, 2010 03:33 AM by Fedor
Mar 27, 2008 09:46 AM|jrummell|LINK
I have a web app that accepts jpg uploads. I've tried to explain to my users that they need to upload 'web friendly' images (less than 100k) but they just don't get it or won't do it. I would like to find a tutorial on optimizing uploaded images before
saving them to disk. Another option would be run an image optimization program as a scheduled task on the upload directory - but I haven't found any such product.
Can anyone offer some guidance?
Apr 07, 2008 01:26 AM|marss|LINK
Apr 08, 2008 03:10 PM|jm2|LINK
If you're not worried about the page timing out- which I'm assuming your not- you could either kick the file after its uploaded if its above your size limit or you could have logic to resize the image before saving, right? Personally, I'd opt for the latter.
Jul 29, 2010 03:33 AM|Fedor|LINK
You can use upload controls (Flash/Silverlight/Java/ActiveX) which supports client-side image resizing, so images are already optimized upon the arrival on server.
Here are examples of such controls: