* @uses WP_Image_Editor Extends class
*/
class WP_Image_Editor_Imagick extends WP_Image_Editor {
-
- protected $image = null; // Imagick Object
+ /**
+ * @var Imagick
+ */
+ protected $image; // Imagick Object
public function __destruct() {
if ( $this->image instanceof Imagick ) {
}
$updated_size = $this->update_size();
- if ( is_wp_error( $updated_size ) )
- return $updated_size;
+ if ( is_wp_error( $updated_size ) ) {
+ return $updated_size;
+ }
- return true;
+ return $this->set_quality();
}
/**