v1.6-v1.7-v8x Want to remove unwanted pictures? Redundant Image Cleaner v4.5.4

korsar13

Active member
Elite
XNullUser
Joined
Sep 1, 2021
Messages
10
Reaction score
127
Points
28
NullCash
335

PrestaShop Compatibility V1.5.0.0 - V8.0.3

Free up disk space on the server of your shop by clearing redundant images with this module. Redundant images are images not needed and not used anywhere in your shop and taking disk space on your shop for no reason.
There are several cases in which Prestashop images happen to become redundant. Some of them are mentioned below:

  • Deleting products from database. This is different than deleting products manually on back-office. Deleting products from database happens with SQL query, most often with import module, or sometimes people delete with SQL command on database. This will not delete images of products. However, if you delete products manually on back-office using Delete button, Prestashop takes care of deleting images too.
  • Deleting image format. If you create new image format and after some time delete that format, the images of that format is not deleted, so they become redundant. Image formats can be found in Preferences -> Images section. By default there are about 6 formats for product images, for example, home_default, large_default, small_default, etc... and some themes create image formats too when you install them, and if you change that theme later, images of those created formats will become redundant.
  • Not erasing previous images when regenerating thumbnails. This is also to be found in Preferences -> Images section. There is an option to erase or not previous images. So if you do not erase, the old images will become redundant and new images will be generated.
  • Generating high resolution images. Prestashop has an option called “Generate high resolution images” on Preferences -> Images section. When you enable this option, new images with higher resolution will be generated. And if you decide not to use this option after using it for some time, those high resolution images will become redundant, you will no longer need them.
  • Importing products using CSV import module. Some import modules may provide option to delete existing images before importing new ones, but they may fail to delete images correctly, leaving old images to be redundant.


HOW TO CHECK IF MY SHOP HAS REDUNDANT IMAGES?

If your shop does not have redundant images, then the module would tell you that you have 0 redundant images. That is why you need to buy this module if you are sure you have a problem with redundant images.

If your images folder (/img) is very huge and you think it is not normal considering number of products you have, then you can make some calculation to find out if the size of your /img folder is normal or not for the number of products you have in your shop. For example, if you have 1000 products and on average you have 3 images per product, you should have total 21000 images. That is because there are 6 image formats (home_default, large_default, etc…). So each image becomes 7 images: original + 6 formats. So 1000 * 3 * 7 = 21000. If average size of an image is 300KB, 21000 images will be around 6GB. So this is approximate size. And then you will check total size of your /img/p folder. If it is something greater than 10GB then there is something wrong and most probably there are many redundant images.


WHAT IS THE DIFFERENCE BETWEEN REDUNDANT IMAGES AND DUPLICATE IMAGES?

Redundant images are images not needed and not used anywhere in your shop, because they are not linked to any product. Whereas duplicate images are linked to products and they exist in your shop just like normal images and you can view duplicate images on product page just like normal images. The problem with duplicate images is that they are uploaded more than once to the same product.


ATTENTION: This module does not delete duplicate images. This module is for clearing redundant images that are not used anywhere.
 

Attachments

  • v4.5.4-elegantalredundantimagecleaner.zip
    1 MB · Views: 100

mikeaquarius

Well-known member
Diamond
Elite
Joined
Sep 29, 2022
Messages
1,027
Reaction score
311
Points
83
NullCash
1,822
very interesting module, I hope to streamline and speed up.
 

d-shilko

Well-known member
Pro
Master
Diamond
Elite
Joined
Jun 10, 2021
Messages
2,492
Reaction score
1,420
Points
113
NullCash
6,270
Hello, thank you for the update!
Have a good one!
 

Sillumin

Well-known member
Pro
Master
Diamond
Elite
Joined
Jun 18, 2021
Messages
3,620
Reaction score
743
Points
113
NullCash
5,953
Thank you very much! This is very useful module! Exact name and author of the module from main PHP file is: Redundant Image Cleaner by ELEGANTAL.
 

roniex

Active member
Elite
XNullUser
Joined
Dec 7, 2021
Messages
63
Reaction score
222
Points
33
NullCash
375
thanks for sharing this awesome module :)
 

hxcode

Well-known member
Master
Diamond
Elite
Joined
Aug 16, 2020
Messages
3,287
Reaction score
360
Points
83
NullCash
13
thank you for sharing. very useful.
 

INDV

Well-known member
Diamond
Elite
XNullUser
Joined
Jul 26, 2021
Messages
540
Reaction score
289
Points
63
NullCash
941
thanks for sharing and update, nice module
 

Naira

Member
XNullUser
Joined
Aug 28, 2022
Messages
104
Reaction score
0
Points
16
NullCash
5
needfull module. hope it fill solve my enormous database size
 

mikeaquarius

Well-known member
Diamond
Elite
Joined
Sep 29, 2022
Messages
1,027
Reaction score
311
Points
83
NullCash
1,822
very interesting module, I hope to streamline and speed up.
 

xinyc1126

Member
XNullUser
Joined
Jun 16, 2020
Messages
334
Reaction score
4
Points
18
NullCash
23
very interesting module, I hope to streamline and speed up.
 

cooldjmc

Member
XNullUser
Joined
May 11, 2022
Messages
199
Reaction score
0
Points
16
NullCash
7
very interesting module, I hope to streamline and speed up.
 

emrys

Member
XNullUser
Joined
Jul 22, 2022
Messages
195
Reaction score
12
Points
18
NullCash
91
Bardzo ciekawy moduł, mam pomoc w usprawnieniu i przyspieszeniu.
 

vivozivo

Well-known member
Diamond
Elite
Joined
Sep 24, 2019
Messages
1,066
Reaction score
495
Points
83
NullCash
12
Thank you very much! This is very useful module!
 

ilsanto64

Active member
XNullUser
Joined
Feb 7, 2019
Messages
1,004
Reaction score
8
Points
38
NullCash
28
very interesting module, I hope to streamline and speed up.
 
Top