vigata / petitoJPEG

A high performance JPEG Encoder written in JavaScript
Other
70 stars 13 forks source link

Better compression at small sizes #3

Open photopea opened 6 years ago

photopea commented 6 years ago

petitoJPG generates images of a quality similar to Canvas encoder, when the quality slider is 30% or higher. But when the quality is lower (e.g. 10%), the quality of images drops significantly. Could you optimize petitoJPG for these cases?

I would like to compress this image into 10 kB or lower. raptor.png (157 kB) raptorc.jpg (9.74 kB) - made with Canvas raptorp.jpg (9.66 kB) - made with petitoJPEG

If you need a quantizer, I wrote a documentation of the one inside UPNG.js at the end of the page: https://github.com/photopea/UPNG.js