
Important step! Check 2 boxes available there: the one to upload images and the second one to clear image gallery for imported goods. Just install it on our Windows-based PC and test how it works! If you do not want to go through every 2 subfolders of /media/catalog/product directory in order to delete from there old images, use Store Manager for Magento tool.Ĭomparing to scripts running, it does not require tech knowledge to use and should not be adjusted to definite Magento version (as it supports both Magento 1 and 2). Remove Old Magento Product Images While Importing New Ones However, this seems much of a headache and manual work to do. You can remove duplicates with underbar and number in the name from each of them. picture.jpg will be loaded to media/catalog/product/p/i/picture.jpg There you will find a series of subfolders (two levels deep) that represent image name (one letter for each level), e.g. Once images are loaded they end up in the media/catalog/product directory.


Instead of replacing the existing images, Magento will annoyingly again add the same image, creating create a copy with _1.jpg etc at the end of filename. This happens pretty often in case you haven’t updated the image location in the CSV to the cached version or import fails and you re-run it. One day you may notice that you have multiple identical images for the same product.

In this tutorial we will show you how to easily clear your image gallery and get rid of images shown twice.ĭelete Duplicate Magento Images From Directory

Having old, low-res image and now looking for a solution to replace product images in Magento 2 with new ones? Or maybe you have uploaded wrong or have duplicated images as a result of upload/ update of products, which are already in the database with images assigned?
