cancel
Showing results for 
Search instead for 
Did you mean: 

import via csv - images are disappearing.

import via csv - images are disappearing.

Hi All,

I have researched the issue i am encountering but wasn't able to find a solution.

 

So, how i do is - 

 

1. uploading media images (only with existing sku) via csv and get notice of "import success".

bulk.png

2. reindex - cache flush : successful

 

3. check the images in item landing page. showing correctly allocated.

total 5 images in more views

itemview3.png

 

4. Then, when i refresh the screen again, some images are gone.

    2 images for this product.

 

itemview4.png

So I have investigated and noticed only some of duplicated images are vanishing.

 

itemview5.png

 

Then I have checked the log file and went into 

pp/code/core/Mage/Core/Model/File/Validator/Image.php

then I found it actually destroys images from memory.

 

        }
                            if (!imageistruecolor($image)) {
                                imagetruecolortopalette($img, false, imagecolorstotal($image));
                            }
                            imagegif($img, $filePath);
                            break;
                        case IMAGETYPE_JPEG:
                            imagejpeg($img, $filePath, 100);
                            break;
                        case IMAGETYPE_PNG:
                            imagepng($img, $filePath);
                            break;
                        default:
                            break;
                    }

                    imagedestroy($img);
                    imagedestroy($image);
                    return null;

 

Then i have re-import item by item with in separate .csv then finally it didn't get rid of the images. but i cannot do this obviously since i have couple hundreds.

 

Please advise me how to fix this issue guys..

Thanks in advance.