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!)
Hello, how hard is it to add a target image size (file size) parameter?
Instead of guessing at what quality will achieve what size.
My own head can think of a binary search algorithm whereby it tries 5-6 iterations attempting to get just under the target max file size. I can use your library to achieve this. But if you have a easier way based on your inside knowledge can we make this a feature?
Hello, how hard is it to add a target image size (file size) parameter?
Instead of guessing at what quality will achieve what size.
My own head can think of a binary search algorithm whereby it tries 5-6 iterations attempting to get just under the target max file size. I can use your library to achieve this. But if you have a easier way based on your inside knowledge can we make this a feature?