Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author andersthorborg

    (@andersthorborg)

    Hi there,

    I guess I could run the image quality parameter through a filter to allow customization. I’ll look into this in the next release.

    Best,
    Anders

    +1

    +1

    This would be great if you could select a crop quality per field

    +1 🙂

    Thread Starter Hrohh

    (@hrohh)

    via filter return quality for me not work, so my workaround is

    add_filter('acf-image-crop/image-quality', 'acf_quality_slider', 10, 3);
    function acf_quality_slider( $quality, $targetW, $targetH ) {
        if ($targetW == '1920' && $targetH == '730') {
            //edit: sorry, it works great! :))
            // add_filter( 'jpeg_quality', function($arg){ return 10; });
            $quality = 60;
        }
        return $quality;
    }

    and little help in acf-image-crop-v5.php
    $image->set_quality( apply_filters('acf-image-crop/image-quality', 100, $targetW, $targetH) );

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Possible set quality crop’ is closed to new replies.