Jetpack Photon and EWWW compatibility issues
-
Sorry in advance for the wall of text. I’ve tested Photon with EWWW image optimizer, and they don’t seem to really work together. With EWWW, I have the options “PNG to JPG” set, combined with the option “Exclude full-size images from lossy optimization”. These two combined make sure that my original PNG image is optimized with only lossless compression, while all the resized thumbnails are converted to highly optimized JPG images.
When combining this with Photon, I’m getting odd results. What I did was upload a 1280×720 PNG image and compared the results with and without Photon, and here’s what I noticed:
– With Photon, the Featured image (625 pixels width) was still a PNG instead of a JPG file. Even more odd was that Photon resized the image to 625×351 pixels instead of 625×352. I get the impression it always rounds down when resizing, either for PNG files or for Featured Images? All the image editors I tried, and also EWWW, resized the image to 352 pixels height. So two questions: why didn’t Photon use the (JPG) featured image generated by EWWW, and why did it resize the image differently?
– The other resized versions of the image were all in JPG format (which is good!) with the correct sizes, but they all had a larger filesize. So Photon seems to generate the thumbnails again, which I find rather puzzling. For example, the link to the image has the following form:
https://i1.wp.com/…/wp-content/uploads/2015/04/image-300×169.jpg?resize=300%2C169
Why is Photon resizing these images when it doesn’t have to? I can understand that Photon tries to optimize the image, but if the end result ends up being larger than the image it started from (which is pretty much guaranteed when using EWWW) and the width and height are exactly the same, I’d argue the logical step would be for Photon to just serve the original file.
- The topic ‘Jetpack Photon and EWWW compatibility issues’ is closed to new replies.