thephpleague / glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.
http://glide.thephpleague.com
MIT License
2.55k stars 199 forks source link

WebP encoded image filesize isn't reduced as expected. #263

Closed andrew-ireland closed 5 years ago

andrew-ireland commented 5 years ago

Using the glide library with Statamic, when I select convert images to webP using glide, the file size ends up being the same as converting to png.

If I convert the same image to the same dimensions with ImageMagick using the command line, the same outputted webP image is roughly half the size of the image from glide.

**I'm pretty sure Statamic is using v 1.1 of glide. The docs seem to indicate webP encoding should work in this version. Am I mistaken? Or is this a known issue?

andrew-ireland commented 5 years ago

Nevermind — just saw in the releases on git that Webp encoding wasn't added until v1.4. Would be nice if this was clearer in the glide documentation!