We have a very strange issue using Magento

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.


2 Answers 2


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."


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


  imagejpeg($img, $filePath, 100);


  imagejpeg($img, $filePath);

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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