brunobar79 / J-I-C

J I C is a Javascript Image Compressor using HTML5 Canvas & File API that allows you to compress your jpeg & png images before uploading to the server (100% client-side and no extra libraries required!)
http://makeitsolutions.com/labs/jic/
MIT License
857 stars 196 forks source link

Added uploadDownsize() #11

Open luigi37 opened 10 years ago

luigi37 commented 10 years ago

Added uploadDownsize() function to proportionally reduce (if needed) the size of the image in terms of pixels and to compress it in terms of quality before upload. Scope is trying to minimize the bandwidth usage and server workload to accomplish same task.

A recursive function to match a wanted filesize would be very nice...