This is because the quality setting is set to 100 by default in the plugin, on acf-image-crop-v5.php line 523:
// Set quality
$image->set_quality( apply_filters('acf-image-crop/image-quality', 100) );
It would be nice if there was a way of changing it to 80 or something, as it is I’ve had to manually edit the plugin file and remember to change it again on update.
@andersthorborg did you ever setup a system where we could contribute to the development of this plugin? I think I asked a while ago but I’m not sure if the github repo I’ve found it up to date or in sync… Cheers.
Patrick,
Thanks for the information. You’re hack works.
Cheers.
Hi @patrick Whitty-Clarke,
Sorry for the late response. There’s no need to modify the plugin code, as you should be able to change the image quality using the filter applied in the line you are reffering to (acf-image-crop/image-quality) by putting something like the following in your functions.php (not tested).
function my_image_quality( $quality ) {
return 90;
}
add_filter( 'acf-image-crop/image-quality', 'my_image_quality' );
I finally managed to get the github and wp-repos in proper sync, so if you want to contribute, feel free to use https://github.com/andersthorborg/ACF-Image-Crop
Thanks.
Thanks Anders, that’s a more sensible approaching.