Hello,
I'm saving an image via File Upload field and it's path is stored in user metadata. So far so good.
I now need to grab that image and resize it. I'm trying to do it with wp_get_image_editor() as following: $image = wp_get_image_editor( $file );
where $file is the correct path to the image.
However, this returns the following error:
Any idea what might be wrong? Maybe I need to pass mime type to wp_get_image_editor()? I don't know how to do it.
I would hugely appreciate any help.
Many thanks,
Dasha