There are numerous ways to resize uploaded images. Some are done via the web server. Others are done within the app. For a couple of my apps I use the python PIL package to resize uploaded images to thumbnails and the like. Here's a code fragment that shows how to do it:
def resize_image(table, indx): from PIL import Image On Thursday, May 9, 2013 5:43:45 AM UTC+8, Dragan Matic wrote: > > Is there a way to automatically optimize and convert images after users > upload it on my web app? I am pretty sure lots of users will upload > uncompressed .bmp pictures or extra large pictures directly from camera. I > think it would be best if I could resize and compress them immediately > after upload. What would be the best way to do it? > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

