diff --git wp-includes/class-wp-image-editor-imagick.php wp-includes/class-wp-image-editor-imagick.php
index 03485b5..bd49fdd 100644
|
|
class WP_Image_Editor_Imagick extends WP_Image_Editor { |
197 | 197 | if ( ! $height ) |
198 | 198 | $height = $size['height']; |
199 | 199 | |
| 200 | try { |
| 201 | $this->image->setImagePage( $width, $height, 0, 0 ); |
| 202 | } |
| 203 | catch ( Exception $e ) { |
| 204 | return new WP_Error( 'image_update_size_error', __('Could not update image size') ); |
| 205 | } |
| 206 | |
200 | 207 | return parent::update_size( $width, $height ); |
201 | 208 | } |
202 | 209 | |