Product Images Not Showing After Import
If you’ve tried to import images into magento at the same time as your products using the ‘Import Products’ profile, you may have come across a few errors. Whilst trying to import multiple products sing Magento’s ‘Import Products’ profile, I recently ran into one problem after another – though the products imported just fine, my images were either mysteriously absent, or mysteriously broken.
One of the initial problems is that the export profile puts a path in front of the image names, which is incorrect for new products. So if you’re importing products from another store, you’ll need to edit the image paths first. Exported products with images, when exported, with have image paths like this:
/i/m/imagefile01.gif
However, when importing multiple products with images, the csv needs to be directed to the media/import folder – this can be done with a simple, single forward slash:
/imagefile01.gif
Now, make sure all the product images you want to import are uploaded to: media/import and that the file permissions are set to 757 for the media directory & all files/subdirectories.
The next issue I had was that, even when the filepaths were correct, all of the image links were broken and set to ‘Exclude’. To fix this and get your image import working, simply do the following:
Create a local copy of:
app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php
Find
foreach ($imageData as $file => $fields) {
try {
$product->addImageToMediaGallery(Mage::getBaseDir('media') . DS . 'import' . $file, $fields);
}
catch (Exception $e) {}
and replace with
foreach ($imageData as $file => $fields) {
try {
$product->addImageToMediaGallery(Mage::getBaseDir('media') . DS . 'import' . $file, $fields,
true, /* defaults to false - tells Magento whether to move the file or not */
false); /* defaults to true - tells Magento whether to exlclude the file or not */
}
catch (Exception $e) {}
I hope this helps you with your importing product images issues – thanks for reading our Magento blog at Ecommerce web design!

Okay this is a MUCH needed fix in Magento. I think I’ve had to fix this EVERY time I’ve worked on a store. For some reason images seem to work for the first few imports, but then they just stop after a while and I have to apply a fix like this. Do you have any idea why?
Anyway, THANK YOU for posting this. I also have just got used to the idea of using local files instead of editing the core. Wish I would have done that a LONG time ago.
Yeah I’ve had the same issues. Imports work perfectly for a few, but then for no apparent reason they start excluding the images. It’s frustrating to no end.
/public_html/media/catalog/product
Rename the capital letters to lower care.
Thanx, This was a great help.