Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1193858

    If I upload JPG image (800 x 800 – 163KB) with Enfold active, the resulting files are almost 4 times larger than if I upload the same file having switched the theme to “2020” default theme.
    Only plugin is “Classic Editor”

    Original: 800×800 – 163KB

    Enfold
    300×300.jpg 90KB
    768×767.jpg 516KB

    2020 Theme
    300×300.jpg 25KB
    768×767.jpg 157KB

    Is there anything I can do to fix this?

    • This topic was modified 4 years, 8 months ago by BruceJackson.
    #1194848

    Hey BruceJackson,

    Please have a look at the following thread:

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1194860

    Hello Victoria,

    thank you, but that only refers to reducing how many image versions are generated, not the size of the individual files.

    My problem with Enfold is that the created file-sizes are much larger with Enfold active, compared to other themes.
    I tried a solution I found on another forum without success:

    function av_return_compression(){ return 85; }
    add_filter(‘jpeg_quality’, ‘av_return_compression’);
    add_filter(‘wp_editor_set_quality’, ‘av_return_compression’);

    Generated images with Enfold are still roughly 4x larger than with default WordPress Theme.

    This is easy to test – just upload any image via Media Library with Enfold active, then rename the file and upload it again with TwentyTwenty active. The second versions files will be much smaller.

    #1195660

    Hi BruceJackson,

    Have you placed the code in a child theme?
    If you don’t have it yet, then please download it here (instructions are also in the link): https://kriesi.at/documentation/enfold/child-theme/
    If you have already and placed the codes in the child theme’s functions.php then try to manually replace all the single quotes.
    Also the default compression of WordPress is 82.

    Best regards,
    Nikko

    #1195696

    Child theme was already active – and I also tried 75%, that made no difference.
    I tested this in another website today also with Enfold and see the same problem, so it is easy to test!

    The difference is always the same – images are 4 times larger.
    Have you tested this?

    #1195920

    Hi BruceJackson,

    Yes, I have tested it and this code works on my end:

    function av_return_100(){ return 82; }
    add_filter('jpeg_quality', 'av_return_100');
    add_filter('wp_editor_set_quality', 'av_return_100');

    We have already posted this issue to our devs.

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.