diff --git src/wp-includes/class-wp-image-editor-imagick.php src/wp-includes/class-wp-image-editor-imagick.php
index 74ba793..8355720 100644
|
|
class WP_Image_Editor_Imagick extends WP_Image_Editor { |
68 | 68 | 'setimagecompressionquality', |
69 | 69 | 'setimagepage', |
70 | 70 | 'setoption', |
| 71 | 'setresourcelimit', |
71 | 72 | 'scaleimage', |
72 | 73 | 'cropimage', |
73 | 74 | 'rotateimage', |
… |
… |
class WP_Image_Editor_Imagick extends WP_Image_Editor { |
157 | 158 | return new WP_Error( 'invalid_image', $e->getMessage(), $this->file ); |
158 | 159 | } |
159 | 160 | |
| 161 | // Limit Imagick to only use 1 thread to avoid memory issues with OpenMP |
| 162 | $this->image->setResourceLimit( 6, 1 ); |
| 163 | |
160 | 164 | $updated_size = $this->update_size(); |
161 | 165 | if ( is_wp_error( $updated_size ) ) { |
162 | 166 | return $updated_size; |