Image Cleaner

Nice addon - Wishlist - Image Cleaner

Nice addon - Wishlist

by GetSirius » Sun Oct 06, 2024 6:51 pm

Great addon, thank you. Only tested a little so far. My wishlist if you update the addon:

1. Like that I can restore deleted images, but that can only be done if the addon is not reloaded after images are deleted. Would be nice if there was a way to view /images/unused to find images that need to be restored. Yes, I can do that on the server, but in the addon would be convenient.

2. Would be nice if the list of images and folders to be ignored could be stored. I did so in my Phoenix notes but in the addon would be more convenient.

3. It appears that images/unused folder needs to be manually added. Perhaps that folder should be included in the addon files?

4. A filter when searching for images to find files that are older than X number of days/weeks old.

5. I do not see any images listed in red even though the app told me:
"It appears that you have 67 images in the database that do not exist on the server
(they are listed in red - click on red links to edit item)"

Again, thank you!
GetSirius
Member
Posts: 50
Joined: Wed Mar 17, 2021 7:15 pm
Phoenix Version:
Contact:

Re: Nice addon - Wishlist

by GetSirius » Tue Oct 08, 2024 6:09 pm

Just installed on my production website and the "images in the database that do not exist on the server" do show up in red and are editable. No idea why this does not happen in my test shop, it is on the same server, just another folder. The names of the images are there, but not in red and link goes to the image and not the page that needs to be edited.

On my production installation, once I deleted all the products I could find that had no images (they were old listings all in one category), I still get "It appears that you have 58 images in the database that do not exist on the server" but nothing is listed in red.
--------
Same thing happened as before with the /unused directory, Addon created /shop/shop/images/unused and did not move image until I made the proper directory.

After making shop/images/unused/ the app moves the images to that directory, but still creates the /shop/shop/images/unused/ directory with nothing in it.

Not bashing this addon at all. I very much appreciate it and it has been useful to me.
GetSirius
Member
Posts: 50
Joined: Wed Mar 17, 2021 7:15 pm
Phoenix Version:
Contact:

Re: Nice addon - Wishlist

by frankl » Sat Mar 01, 2025 1:17 am

Thank you so much for the feedback.

I believe the errors you experienced are due to the inconsistent use of DIR_WS_CATALOG in the adon. Sometimes paths were called using

DIR_FS_CATALOG . DIR_WS_CATALOG . 'images/

and other times

DIR_FS_CATALOG . 'images/

I've updated and reuploaded the addon.
frankl
Builder
Posts: 159
Joined: Tue Feb 23, 2021 8:39 pm
Phoenix Version: v1.1.0.4
Contact: