WordPress.org

Make WordPress Core

Ticket #22543: 22543-2.diff

File 22543-2.diff, 614 bytes (added by markoheijnen, 3 years ago)

Solution 2: Animated GIF's and all other images will not be handled by imagick but GD instead

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

     
    3838         * @return boolean 
    3939         */ 
    4040        public static function test( $args = array() ) { 
    41                 if ( ! extension_loaded( 'imagick' ) || ! is_callable( 'Imagick', 'queryFormats' ) ) 
     41                if ( ! extension_loaded( 'imagick' ) || ! is_callable( 'Imagick', 'queryFormats' ) || ! is_callable( $this->image, 'setIteratorIndex' ) ) 
    4242                        return false; 
    4343 
    4444                return true;