
Tagged: image quality
-
AuthorPosts
-
June 3, 2025 at 3:03 pm #1485031
Enfold generates files twice or larger than the original file uploaded to WordPress.
Example →I’ve seen other tickets with the same issue.
I have reset the default image quality back to 80, but that doesn’t significantly fix the issue.Does this increase in file size generated by Enfold seem normal to you? :(
Best regards,
OrianoJune 3, 2025 at 3:37 pm #1485032I uploaded the same file to a WordPress installation with default theme (TwentyTwentyTwo) and to a WordPress installation with Enfold theme.
This is the disheartening result
😳What do you advise us to do?
Best regards,
OrianoJune 4, 2025 at 4:29 am #1485052Hi,
Thanks for reaching out.
The theme automatically increases the image quality to 100%, but the WordPress default is only 82%. This can be adjusted by using the following filters in the functions.php file:
add_filter("avf_jpeg_quality", "avf_set_quality_mod", 9999, 1); add_filter("avf_wp_editor_set_quality", "avf_set_quality_mod", 9999, 1); function avf_set_quality_mod($quality) { $quality = 60; return $quality;}
We recommend setting this to 70 or lower, then install an image compression plugin such as ShortPixel or Smush to further reduce file size and optimize the images. You may need to regenerate the thumbnails after the quality adjustment.
— https://wordpress.org/plugins/force-regenerate-thumbnails/
Best regards,
IsmaelJune 4, 2025 at 8:53 am #1485067Hi Ismael, thanks for your help.
I inserted your code in the function file, then I tried to load the same image and you see the result here.
Definitely better.But now the question I ask you is: Why Enfold set the image quality to 100%?.
Best regards,
OrianoJune 5, 2025 at 5:49 am #1485102Hi,
At first, it’s probably a trade-off between quality and performance when it comes to images. The filter we suggested above was added to balance the two and give users the option to adjust them based on their requirements. If we’re not mistaken, setting the quality to the maximum didn’t previously result in thumbnails with overly large file sizes, or we would never have set it as the default. It’s only recently that this has been happening or reported. Please keep the quality around 70 for now, then use an image compression plugin (Smush, Shortpixel etc) to further optimize the images.
We’ll forward this thread to our channel.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.