Defcon2

Image Clean

  • Popularity Score 7617 Popularity Score

    Popularity ScoreReferrals to Site/Downloads

    0 0 1+ 1+ 250+ 250+ 1000+ 1000+ 10000+ 10000+

This extension allows to list all the product images that already are not in use and to erase them.
Compatible with:
This extension is currently unavailable on Magento Connect. Please contact the developer.

You will be re-directed to the developer's website to complete your purchase.

You must be registered and logged in to get extension key.
In order to get this extension, you must be logged in to the Magento Community. Click here to login or register.

Magento Connect 2.0

Magento Connect 2.0

FREE
Previous Next
Overview

Image Clean

This estension lists all the product images that they find in the directory "media/catalog/product" and that they do not in the database. It allows to select and to erase these files.

Release Notes

This extension allows to list all the product images that already are not in use and to erase them.

2012-02-06 09:05:45
  • Version number: 0.1.0
  • Stability: Beta
  • Compatibility: 1.4.1.1
You must be registered and logged in to get extension key.

Magento Connect 1.0

Magento Connect 1.0

This extension lists all the product images that they find in the directory "media/catalog/product" and that they do not find in the database. It allows to select and to erase these files.
Reviews

About the Developer

This extension was developed by and is supported by Defcon2

Image Clean 4.5 5 66 66
1.9.1 Deletes main image ? It deletes the main image from products for me in 1.9.1. I think this logic is needed ? The code could do with being a bit more "magentoized" class Mage_Imaclean_Model_Mysql4_Imaclean_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract { public function getAttributeId($name) { $eavAttribute = new Mage_Eav_Model_Mysql4_Entity_Attribute(); $code = $eavAttribute->getIdByCode('catalog_product', $name); return $code; } public function getImages(){ try { $this->setConnection($this->getResource()->getReadConnection()); $this->getSelect() ->from(array('main_table'=>$this->getTable('catalog/product_attribute_media_gallery')),'*') ->group(array('value_id')); $array=array(); foreach ($this->getData() as $item){ $array[] = $item['value']; } $ids = array(); $ids[]=$this->getAttributeId('image'); $ids[]=$this->getAttributeId('small_image'); $ids[]=$this->getAttributeId('thumbnail'); $tag = implode(",",$ids); $sql = "SELECT `value` FROM `catalog_product_entity_varchar` WHERE `attribute_id` IN($tag) GROUP BY `value`;"; $rows = $this->getResource()->getReadConnection()->fetchAll($sql); foreach ($rows as $row){ $array[] = $row['value']; } }catch(Exception $e){ Mage::log($e->getMessage()); } return $array; } } January 29, 2015
Works a treat Brilliant, does what it says! Just got rid of 500MB of old images. January 19, 2015
Woring Good good extension for delete unwanted image files highly recommended... December 10, 2014
Simple but Effective run in admin and delete images. Should be called Ronseal "does what it says on the tin" November 15, 2014
A must have This extension does exactly what i need. When you delete a product in the database, it does not delete images associated. This extension save about 2gb of old images Thanks October 3, 2014
Works smooth Works like a charm. Installed by Magento Connect and erased 2Gb images in 1 click. Perfect! August 24, 2014
works on CE 1.9.0.1 It works for me on CE 1.9.0.1 I installed this as usual via connect. Within a minute it freed up a half of GB disk space from orphan images!!! It does not delete from cache, anyway it is not a problem at all THe question is why these orphan images appear and why magento does not delete images when product are deleted? Is this a bug of magento or "works as designed"? August 11, 2014
not working after upgrading from 1.7 to 1.8 Hello, Can somebody help me and the rest of magento users that are not very good programmers to update the extension in order to work with magento 1.8.0.0? Thanks, Marcel June 14, 2014
Magento 1.9 install [SOLVED] I installed this on Magento CE 1.9 . Didn't use the installer , but downloaded the extension and made a few changes according to new Magetno structure. Recompile and it works.... Thanks to this 28K+ images from old catalogue were deleted in 2 minutes! June 11, 2014
Works but has issues with large catalogues First, congratulations and thanks to the developer. This works but, as mentioned by other reviewers, it has problems with really large numbers of images. My problem was an excessive amount of duplicate images caused by an EPOS system that did not delete product images - so each test upload resulted in numerous images_i, image_2, etc. What I found was running this extension resulted in WSOD - possibly caused by PHP memory limit settings on the server. However, hitting the back button would result in the extension showing about 5k images not in the database. I deleted these and then did a rinse & repeat several times. The outcome was about 15k duplicate images were deleted. So it worked - which is great. Thanks again. Magento 1.7.02 May 21, 2014
2 3 4 5 ... 7 next>>
Q&A
(6 Questions : 2 Answers)

Product Q&A

Ask your questions. Share your answers.

 
 
« Back
 
 
Sort by
 
1 answer

Magento 1.8

Avatar Image Url:: http://www.magentocommerce.com/images/avatars/uploads/avatar_26638402
Customer avatar
I installed your module. Installed correctly. Logged out and login again. but i don't see it anywhere in admin panel?

Anything else i have to do?
by
bappa06
-
1 year, 3 months ago
0points
0out of 0found this question helpful.
Was this helpful?Yes0No0

Answers

Avatar Image Url:: http://www.magentocommerce.com/images/avatars/uploads/avatar_27133856
Customer avatar
Answer: 
Change:

Mage_Adminhtml_Controller_action
to
Mage_Adminhtml_Controller_Action

in /app/code/local/Mage/Imaclean/controllers/Adminhtml/ImacleanController.php

Then recache and run compilation process again. Then when you click the link in admin it should now work. It does for me, and i had the same problem as you.
by
teaboy02
-
1 year ago
-1point
1out of 3found this answer helpful.
Was this helpful?Yes1No2
Avatar Image Url:: http://www.magentocommerce.com/images/avatars/uploads/avatar_27239671
Customer avatar
Now when I log into my Magento Admin console, I don't see any options except this error message:

Fatal error: Class 'Mage_Imaclean_Helper_Data' not found in /home/protech/public_html/store/app/Mage.php on line 546
by
wacandrew
-
1 year, 2 months ago
0points
0out of 0found this question helpful.
Was this helpful?Yes0No0

Answers

Avatar Image Url:: http://www.magentocommerce.com/images/avatars/uploads/avatar_318290
Customer avatar
Answer: 
You properly didn't switch of the Compiler before you installed the extension.
Go on FTP to "includes" and open the config.php.
Make a "#" in front of "define(‘COMPILER_INCLUDE_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’src’);"
The got to "var" Folder and clear the "cache" Folder.
Log off and on in your backend and voila.
by
siqu
-
11 months ago
0points
0out of 0found this answer helpful.
Was this helpful?Yes0No0
Avatar Image Url:: http://www.magentocommerce.com/images/avatars/uploads/avatar_108749
Customer avatar
I had thought I had installed this extension on a 1.51 site, but now the module says "Compatible with: 1.7"...
by
el1jones
-
2 years ago
-1point
0out of 1found this question helpful.
Was this helpful?Yes0No1
Avatar Image Url:: http://www.magentocommerce.com/images/avatars/uploads/avatar_27238343
Customer avatar
I don't think duplicates are inactive so I'm not sure if this extension will do what I want.
by
alexandermorris
-
1 year ago
0points
0out of 0found this question helpful.
Was this helpful?Yes0No0
 
0 answers

magento 1.9

Avatar Image Url:: http://www.magentocommerce.com/images/avatars/uploads/avatar_26085781
Customer avatar
I've installed correctly , but nothing shows up in backend.
The change in imagecleancontroller.php didn't work.
Is there another way to get it to work?
Best regards, Joop
by
Joop Mulder
-
9 months ago
0points
0out of 0found this question helpful.
Was this helpful?Yes0No0
Avatar Image Url:: http://www.magentocommerce.com/images/avatars/uploads/avatar_27476189
Customer avatar
Hello,

Would this extension work with Magento EE?
by
mtwinkler
-
7 months ago
0points
0out of 0found this question helpful.
Was this helpful?Yes0No0
1 of 1
1 of 1
Get Help

Support for This Extension

The best place to start if you need help with a specific extension is to contact the developer. All Magento developers have both a contact email and a support email listed.

Magento Platform Support

If you need support for a Magento platform, there are different options for support depending on which Magento platform you are using. Below are links for specific platforms.

In order to upload extension, you must be logged in to the Magento Community. Click here to login or register.

Close

Register

* Required Fields

Close window

Forgot Your Password?

Please enter your email below and we'll send you a new password.

* Required Fields

Close window

Login

To upload extension you must be logged in.

* Required Fields

Close window

You are using an outdated browser

We built Magento Connect using the latest techniques and technologies.
This makes Magento Connect faster and easier to use.
Unfortunately, your browser doesn't support those technologies.
Use the links below to download a new browser or upgrade your existing browser.