WordPress.org

Make WordPress Core

Ticket #22543: 22543-1.diff

File 22543-1.diff, 673 bytes (added by markoheijnen, 17 months ago)

Solution 1: Animated GIF's still will be manipulate by imagick

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

     
    8989                                return new WP_Error( 'invalid_image', __('File is not an image.'), $this->file); 
    9090 
    9191                        // Select the first frame to handle animated GIFs properly 
    92                         $this->image->setIteratorIndex(0); 
     92                        if( is_callable( $this->image, 'setIteratorIndex' ) ) 
     93                                $this->image->setIteratorIndex(0); 
     94 
    9395                        $this->mime_type = $this->get_mime_type( $this->image->getImageFormat() ); 
    9496                } 
    9597                catch ( Exception $e ) {