Ticket #22543: 22543-2.diff

File 22543-2.diff, 614 bytes (added by markoheijnen, 6 months ago)

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

Line 
1Index: wp-includes/class-wp-image-editor-imagick.php
2===================================================================
3--- wp-includes/class-wp-image-editor-imagick.php       (revision 22829)
4+++ wp-includes/class-wp-image-editor-imagick.php       (working copy)
5@@ -38,7 +38,7 @@
6         * @return boolean
7         */
8        public static function test( $args = array() ) {
9-               if ( ! extension_loaded( 'imagick' ) || ! is_callable( 'Imagick', 'queryFormats' ) )
10+               if ( ! extension_loaded( 'imagick' ) || ! is_callable( 'Imagick', 'queryFormats' ) || ! is_callable( $this->image, 'setIteratorIndex' ) )
11                        return false;
12 
13                return true;