WordPress.org

Make WordPress Core

Ticket #40415: class-wp-image-editor-imagick.php.patch

File class-wp-image-editor-imagick.php.patch, 658 bytes (added by robertark, 9 months ago)

Allow users to define Imagick resize filter

  • class-wp-image-editor-imagick.php

     
    308308                        'FILTER_SINC',
    309309                );
    310310
     311        /**
     312         * Filters to choose another resizing filter
     313         *
     314         * @param string $filter_name Filter name
     315         */
     316        $filter_name = apply_filters( 'imagick_resize_filter', $filter_name );
     317
    311318                /**
    312319                 * Set the filter value if '$filter_name' name is in our whitelist and the related
    313320                 * Imagick constant is defined or fall back to our default filter.