Hi,
after uploading images geht converted into the differents sizes. The resulting quality isn´t suitable for all projects (= to low). Where and how can I adjust the compression settings?
I also own the ewww optimizer, does it make sense to reconvert with that plugin?
Thanks
Hey h-i-m,
Thank you for the inquiry.
The theme automatically sets the quality of uploaded images to maximum, but this can be adjusted using this filter 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 = 55; return $quality;}
The EWWW Image Optimizer plugin should also improve the compression.
Best regards,
Ismael
Thanks, Ismael.
Are you certain the quality is set to maximum? Regarding the artifacts in the resized images, I would have thought the setting is at aroung 70-80.
I will try with the filter.
Hi,
Thank you for hte update.
Yes, the theme sets the quality to 100 by default, but it’s possible that your compression plugin is overriding this. If you want to increase the quality, make sure to remove the filter and adjust the image compression settings until you’re satisfied with the result.
Best regards,
Ismael