kamsar / Dianoga

An automatic image optimizer for the Sitecore media library.
Other
104 stars 45 forks source link

Added jpegoptim lossy (quality 90%) optimizer #28

Closed bartlomiejmucha closed 6 years ago

bartlomiejmucha commented 7 years ago

I added this for my own project needs, because google page speed now suggest images to compress lossly. In my case google suggested that images on my site could be compressed by additional 500kb each, and 6MBs in total (yeah there are a lot of high quality images on site). Google suggest to use jpegtran or jpegoptim. The latter have option to set jpeg quality. I tested and I got the same results like google suggest with quality 90%. So the image is compressed from 700kb (the size after jpegtran) to 200kb and it looks the same.

vellemansf commented 6 years ago

Works like a charm!

Edit: both quality and size improved if I disabled Sitecore's compressing (on resizing etc).

bartlomiejmucha commented 6 years ago

How you disabled Sitecore's compressing?

cmejiasr commented 6 years ago

Works Perfect.

I had to down the quality a little bit more, but the results were the expected.

bartlomiejmucha commented 6 years ago

Google Page Speed suggest 85% quality. At first, I set it to 90% but now I'm considering to lower it to 85%.