using wp_get_image_editor with image url
-
Hello, i try to make the following:
$imgURL = 'https://localhost/wordpress/wp-content/uploads/2013/07/jul-13-hot-2560x1440.png'; $img = wp_get_image_editor( $imgURL ); if ( ! is_wp_error( $img ) ) { $img->resize( 500, 500, true ); $img->stream(); }
All that outputs its :
The image “https://localhost/wordpress/?page_id=1685” cannot be displayed because it contains errors.
I assume that i must absolute path to work but i need to make it work with urls because that i retrieve from my slider option panel.
- The topic ‘using wp_get_image_editor with image url’ is closed to new replies.