Magento – SUPEE-9767 Patch increasing JPG image sizes

magento-1.7magento-1.8magento-1.9patches

Is anyone else seeing issues with uploading images through the WYSIWYG editor in the admin as far as images becoming larger? For example, I uploaded a JPG image optimized in Photoshop that's 168KB but after uploading it's over 460KB.

I looked into the patch code and it looks like they're resampling images and saving them at 100% quality in the validate method (core/Mage/Core/Model/File/Validator/Image.php) instead of just passing the image as uploaded into the wysiwyg media directory.

I've applied V2 of the patch as well as trying to update the code myself from the many other posts here that were dealing with the PNG background issue but the issue is always going to be that they're doing imagejpeg($img, $filePath, 100);. This is recreating the image at 100% quality and that's a big problem.

Am I crazy or are other people able to duplicate this? If so, this is a huge problem for store owners as they'll start seeing their Google Page Speed score go down because images are now so large.

Best Answer

Turn off the image reprocessing.

insert into vbstag_mag.core_config_data (scope, scope_id, path, value) values('default','0','general/reprocess_images/active','0')

I'm unable to find a front end configuration for this.

Related Topic