This is a discussion on Remove Unused Images within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Scenario: I have 9000 image files. 2400 of them are not being used. How to find them and remove them ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| 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 More...
__________________ Michael Sasek osCMax Developer *** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers *** Stay Up To Date with everything osCMax: Free osCMax Newsletters - Security notices, New Releases, osCMax News osCMax on Twitter - Up to the minute info as it happens. Know it first. osCMax User Manual - osCMax Templates - Advanced Template Tutorial |
|
#2
| |||
| |||
| If I delete a product does it delete the image associated with that product ? Also looking at my images directory not all the images arte stored there, what other directories hold images ? Thanks |
|
#3
| ||||
| ||||
| 1. No. It does not do that (delete images when you delete products). 2. That is where images are stored by default (/images). If you are storing images elsewhere, you should know where that is, since you had to customize the settings to get osCommerce to store them in other locations.
__________________ Michael Sasek osCMax Developer *** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers *** Stay Up To Date with everything osCMax: Free osCMax Newsletters - Security notices, New Releases, osCMax News osCMax on Twitter - Up to the minute info as it happens. Know it first. osCMax User Manual - osCMax Templates - Advanced Template Tutorial |
|
#4
| |||
| |||
| Someone else setup the site, any way to determine how to find the other image directories ? Your company hosts the sites so can you guys figure where ? Thanks |
|
#5
| ||||
| ||||
| You could use several methods to find images. You can use the Cpanel Disk Usage utility that shows what files and where. Login to your cpanel account to use this. You could use a command line search via ssh: Code: find . -type f -name "*.jpg" | xargs ls -l find . -type f -name "*.gif" | xargs ls -l
__________________ Michael Sasek osCMax Developer *** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers *** Stay Up To Date with everything osCMax: Free osCMax Newsletters - Security notices, New Releases, osCMax News osCMax on Twitter - Up to the minute info as it happens. Know it first. osCMax User Manual - osCMax Templates - Advanced Template Tutorial |
| The Following User Says Thank You to michael_s For This Useful Post: | ||
nickt15 (05-27-2009) | ||
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How To Remove Other Images For This Product Box? | m82492 | osCommerce 2.2 Modification Help | 2 | 09-23-2008 02:10 PM |
| Remove Default Images | michael_s | New osCommerce Contributions | 0 | 06-04-2007 07:14 AM |
| Add/Remove images from "New Products" | Mats_H | osCommerce 2.2 Modification Help | 2 | 05-06-2006 09:11 AM |
| Remove "add to cart" function from images in produ | adam71o | osCMax v2 Customization/Mods | 2 | 01-26-2006 04:48 PM |
| Remove Product Images from server | chitta_rn | osCMax v2 Customization/Mods | 1 | 12-25-2005 09:56 AM |