I’m using aq_resize class to resize images and save them, but inside aq_resize.php there’s a wordpress function ($editor = wp_get_image_editor( $img_path )) always returning Error (wp_error)…
Here’s a part of the malfunctioning code:
$editor = wp_get_image_editor( $img_path );
if ( is_wp_error( $editor ) || is_wp_error( $editor->resize( $width, $height, $crop ) ) )
return false;
$resized_file = $editor->save();
Read more here: wp get image editor returns wp error