Closed genesiscz closed 8 years ago
To me honest, this gave me hours of cancer because I couldn't manage WHY the compressed image has about 50% size of original image, but while uploading, it had more than 90% the original size. This had fixed it for me.
To be more certain, look at your example, which gives impressive result for compressed image, but not-so-impressive for an uploaded image. It kills whole purpose of compressing.
Thank you for this!
The bug still exists. At least on the demo.
It isn't necessary to create second cavas for image to get dataURL out of it, because we've got it as dataURL before. Additionally, redrawing (with default 100% quality) made file even larger.