);
         }
 
-        // Strip meta data off image - this prevents EXIF orientation shenanigans
-        $file['tmp_name'] = $this->stripImageMeta($file['tmp_name']);
+        // If the image resource is a url (from the import script) then don't try to strip it
+        if (!filter_var($file['tmp_name'], FILTER_VALIDATE_URL)) {
+            // Strip meta data off image - this prevents EXIF orientation shenanigans
+            $file['tmp_name'] = $this->stripImageMeta($file['tmp_name']);
+        }
 
         // Get the desired file name and add a timestamp to it to ensure that it's unique
         $fInfo = pathinfo($file['name']);