Photon increasing file size of JPEG images with high compression
-
It seems Photon is increasing the file size of JPEG images with high compression. If I save a JPEG image with high compression and upload it to Media Library, the version on my host keeps the original size, while the version at ix.wp.com becomes larger/heavier. Apparently, that does not happen when I upload JPEG images with low compression.
I think Photon may be reprocessing the image files using a lower compression rate (i.e., higher nominal quality), therefore increasing its size. For example, a JPEG image with quality 10 (high compression) is reprocessed by Photon with quality 90 (low compression). If true, that is not good – we end up getting worse image quality and higher file size.
Two questions:
- What is happening?
- Is it possible to disable the Photon “reprocessing” of the original images? I love the hosting feature, and it would be great to use that with the actual original images, without reprocessing them. (I would not mind having this “reprocessing” enabled for automatically generated thumbnails, of course.)
Here are two examples.
Image #1 (quality 30 with XnView)
Original (71.16 KB): https://goo.gl/8ah2E8
Photon (72.24 KB): https://goo.gl/ObNkdbImage #2 (quality 10 with Photoshop)
Original (230.38 KB): https://goo.gl/Tj9cKQ
Photon (282.38 KB): https://goo.gl/tI5XaqWith Photon, Image #1 is a little bit heavier, and its quality is severely worse, with more artifacts and wrong colours. Image #2 is a lot heavier, and its quality is only a bit worse.
I have tried adding this to my functions.php file, but nothing has changed (i.e., the problem persists):
add_filter('jetpack_photon_pre_args', 'jetpackme_custom_photon_compression' ); function jetpackme_custom_photon_compression( $args ) { $args['quality'] = 100; return $args; }
Thanks in advance.
- The topic ‘Photon increasing file size of JPEG images with high compression’ is closed to new replies.