Ticket #22543: 22543-1.diff
| File 22543-1.diff, 673 bytes (added by , 13 years ago) |
|---|
-
wp-includes/class-wp-image-editor-imagick.php
89 89 return new WP_Error( 'invalid_image', __('File is not an image.'), $this->file); 90 90 91 91 // 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 93 95 $this->mime_type = $this->get_mime_type( $this->image->getImageFormat() ); 94 96 } 95 97 catch ( Exception $e ) {