image_resize in wp3.5 change to wp_get_image_editor and wont work

Figured it out after a lot of trial and error and a lot of var_dumps.

$image = wp_get_image_editor($file);

if ( ! is_wp_error( $image ) ) {
    $image->resize( $width, $height, true );
    $final_image = $image->save( $file );
}

Then i can use the $final_image array to get what i need.

It actually saved me a step from what i was doing and seems to be a bit faster in regards to the processing vs image_resize()

Leave a Comment

tech