Uploadify and Image Compression

iBiryukov picture iBiryukov · Jan 2, 2011 · Viewed 15k times · Source

I am using Uploadify on one of my client's web sites to allow them to upload a large amount of pictures at once to their photo gallery.

I am seeing issues lately. They seem to upload large photographs (3 MB and above). I am wondering, is it possible to compress (reduce their size) on the client side, instead of doing it on the server (just like facebook does it). I know I could easily do it on the server, but I am working on another project right now, where I am expecting a large flow of photo uploads. It would require significant amount of CPU time to process them all. So I thought, I'd ask about the client side processing.

Thanks.

Answer

Pekka picture Pekka · Jan 2, 2011

You won't be able to compress JPG images much using zip or similar algorithms - they are already close to optimum in themselves. You'd have to resize them on client side. For that, see e.g.