xtremist xtremist - 1 year ago 160
jQuery Question

Compress images on client side before uploading

Does anyone know of any free script that compresses JPG, GIF and PNG files as much as possible?

Answer Source

You might be able to resize the image with canvas and export it using dataURI. Not sure about compression, though.

Take a look at this: Resizing an image in an HTML5 canvas