Jump to content

How can i let the import script check if an image exists?


Recommended Posts

If i try to import an image that can't be found by the script, the script still registers that image, and that "image" will still be shown in the front and back of the store.

 

So my question is: Is there a way i could let the csv import tool check if an images exists before its imported.

 

I did some search on google and found this script:

<?php
if (@GetImageSize("http://www.testdomain.com/testimage.jpg")) {
process image;
} else {
dont process image;
}
?>

 

Is there anybody who can tell me how and where i have to implement that code to get it working

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...