Community Add-Ons

Maintainers: pyramids
Add file to this package
Top » Other

Remove Unused Images
for osCommerce Online Merchant v2.2

Scenario: I have 9000 image files. 2400 of them are not being used.
How to find them and remove them quickly and safely

What this script does:
* Read the database and report back a list of installed images
* Mark (in RED) any DB listed image which does not exist on the server
* Read the server images and report back a list
* Compare the lists for missing data
* Offer you the ability to check or uncheck listed images controlling what gets renamed
* Rename the USER checked listed images from myimage.jpg to UNUSED_myimage.jpg
* Allow you to ftp and delete ALL renamed UNUSED_myimage.jpg images

Legend:  Download   Report
Expand All / Collapse All
Remove Unused Images V1.5 spooks 4 Sep 2009  

Modified, so rather than specify subfolders to include, you now specify an exluded list, otherwise all sub-folders of 'images' are checked
(non-recursive). However the subfolder check is 'off' by default, enable on line 54

Added option for product links for 'not-found' images, this will not include images 'not-found' within product descriptions or any extra tables checked. This opion is 'off' by default, see line 51.

Support thread at http://forums.oscommerce.com/index.php?showtopic=343935 .

tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible

FULL PACKAGE

Remove unused images v1.41 spooks 1 Sep 2009  
Remove unused images v1.4 spooks 31 Aug 2009  
Remove Unused Images 1.3 (proposal by azer) azer 28 Jun 2009  
Remove Unused ImagesRemove Unused Images 1.2 (proposal by azer) azer 28 Jun 2009  
Whoops - last upload didn't list the images nibbles 27 Jun 2009  
Complete package - fixed few linking errors etc nibbles 27 Jun 2009  
Button fix foxycoxy 6 Jun 2009  
Remove Unused Images v1.2 marcusdesign 26 Apr 2009  
Update added missing code pyramids 18 Nov 2008  
Remove Unused Images pyramids 6 Nov 2008