link:
https://addons.prestashop.com/ru/website-performances/22308-redundant-image-cleaner.html
Free up disk space in your store by cleaning up unwanted images. Unnecessary images are images that are not used anywhere. They just take up disk space for nothing useful. They are not associated with any product.
Helps save disk space by removing unwanted images.
Deletes unnecessary product images.
Deletes unnecessary category images.
Deletes unnecessary manufacturer images.
Deletes unnecessary vendor images.
Deletes unnecessary store images.
Saves disk space.
Optimizes your online store.
How are unnecessary images created?
There are several cases where Prestashop images become unnecessary. Some of them are listed below:
Deleting products from the database. This is different from manually deleting products in the back office. Deleting products from the database is done with an SQL query, most often with an import module, or sometimes people delete with an SQL command in the database. This will not delete product images. However, if you delete products manually in the back office using the "Delete" button, Prestashop also takes care of removing images.
Deleting an image format. If you create a new image format and delete that format after a while, the images of that format are not deleted, so they become unnecessary. Image formats can be found under "Settings -> Images". There are about 6 default formats for product images, such as home_default, large_default, small_default, etc. and some themes also create image formats when you install them and if you later change the theme, the images of these created formats will become unnecessary.
Do not delete previous images when creating images of different formats. This is also done under "Settings -> Images". There is an option to delete previous images before generating. So if you do not choose to delete old images, they will become unnecessary and new images will be generated.
Creating high resolution images. Prestashop has an option to "Create high resolution images" under "Settings -> Images". When you enable this option, new higher resolution images will be created. And if you decide not to use this option after using it for a while, high-resolution images will become unnecessary.
Importing products using the CSV import module. Some import modules may provide the ability to remove existing images before importing new images, but they may not remove images correctly, rendering old images unnecessary.