1

We have a very strange issue using Magento 1.9.3.6

After uploading an image using the image uploader both for CMS Pages and Product we see that the image size increase 3-times.

The image we are uploading in our disk is 100kb after uploading through magento file uploader it becomes 300kb

Even with images already loaded all of them have been increased. It's weird.

We can't figure out the problem since in magento backend there is no setting for the image quality or image compression.

1

It looks like an issue related to Magento, you have to modify the code or upload the images directly to the server without WYSIWYG editor.

Someone say it can be disabled with the new SUPEE-9767 patch.

"The image processing that was added in SUPEE-9767 patch is now optional. You may disable it by setting the config general/reprocess_images/active to 0 programmatically, but not via the Admin panel. Although, once you change it the image exploit will appear again."

0

I have made this change in: core/Mage/Core/Model/File/Validator/Image.php

from:

case IMAGETYPE_JPEG:
  imagejpeg($img, $filePath, 100);

to

case IMAGETYPE_JPEG:
  imagejpeg($img, $filePath);

and jpg loaded via wysiwyg editor retain their initial file size.

  • This is exactly the same as your answer here – user21075 Apr 23 '18 at 16:36
  • Duplicate answers doesn't make the question a duplicate... – 7ochem Apr 24 '18 at 8:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.