<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: File is not an image when using wp_get_image_editor</title>
		<link>https://legacy.forums.gravityhelp.com/topic/file-is-not-an-image-when-using-wp_get_image_editor</link>
		<description>Gravity Support Forums Topic: File is not an image when using wp_get_image_editor</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 04:07:32 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/file-is-not-an-image-when-using-wp_get_image_editor" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "File is not an image when using wp_get_image_editor"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-is-not-an-image-when-using-wp_get_image_editor#post-268298</link>
			<pubDate>Wed, 22 May 2013 12:17:42 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">268298@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Handling via priority support.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dashaluna on "File is not an image when using wp_get_image_editor"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-is-not-an-image-when-using-wp_get_image_editor#post-241226</link>
			<pubDate>Tue, 07 May 2013 08:22:08 +0000</pubDate>
			<dc:creator>dashaluna</dc:creator>
			<guid isPermaLink="false">241226@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I'm saving an image via File Upload field and it's path is stored in user metadata. So far so good.&#60;br /&#62;
I now need to grab that image and resize it. I'm trying to do it with wp_get_image_editor() as following: &#60;code&#62;$image = wp_get_image_editor( $file );&#60;/code&#62; where $file is the correct path to the image.&#60;/p&#62;
&#60;p&#62;However, this returns the following error:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[0] =&#38;gt; WP_Error Object
                        (
                            [errors] =&#38;gt; Array
                                (
                                    [invalid_image] =&#38;gt; Array
                                        (
                                            [0] =&#38;gt; File is not an image.
                                        )

                                )

                            [error_data] =&#38;gt; Array
                                (
                                    [invalid_image] =&#38;gt; &#60;a href=&#34;http://example.com/wp-content/uploads/gravity_forms/13-37ec33fbff5089a494d9ad0574a67403/2013/05/la-fitness.jpg&#34; rel=&#34;nofollow&#34;&#62;http://example.com/wp-content/uploads/gravity_forms/13-37ec33fbff5089a494d9ad0574a67403/2013/05/la-fitness.jpg&#60;/a&#62;
                                )

                        )&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;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.&#60;/p&#62;
&#60;p&#62;I would hugely appreciate any help.&#60;/p&#62;
&#60;p&#62;Many thanks,&#60;br /&#62;
Dasha
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
