barnacs / compy

HTTP/HTTPS compression proxy
ISC License
204 stars 34 forks source link

Add PNG and JPEG to WebP transcoding #10

Closed gaul closed 7 years ago

gaul commented 7 years ago

WebP lossy mode offers up to 30% better compression than JPEG.

barnacs commented 7 years ago

Great stuff, I didn't bother with this because firefox didn't support webp at the time (I think that's still the case). Maybe webp could be used for (possibly animated) gifs as well?

gaul commented 7 years ago

I also use Firefox which does not support WebP but this may change soon:

https://bugzilla.mozilla.org/show_bug.cgi?id=1294490

I tested that compy serves JPEG to Firefox and WebP to Chromium.

gaul commented 5 years ago

Firefox 65 should ship this:

https://www.fxsitecompat.com/en-CA/docs/2018/webp-image-support-has-been-added/