Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fballiano/openmage-image-cleaner
Image cleaner for Magento 1 and OpenMage. Cleans orphans category, product and wysiwyg images.
https://github.com/fballiano/openmage-image-cleaner
image-classification image-processing magento magento-2-extension-free magento-extension magento-module magento-module-free magento1 magento1-module
Last synced: about 1 month ago
JSON representation
Image cleaner for Magento 1 and OpenMage. Cleans orphans category, product and wysiwyg images.
- Host: GitHub
- URL: https://github.com/fballiano/openmage-image-cleaner
- Owner: fballiano
- Created: 2021-04-04T18:37:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T15:53:16.000Z (8 months ago)
- Last Synced: 2024-05-02T02:08:37.315Z (7 months ago)
- Topics: image-classification, image-processing, magento, magento-2-extension-free, magento-extension, magento-module, magento-module-free, magento1, magento1-module
- Language: PHP
- Homepage:
- Size: 81.1 KB
- Stars: 20
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
- awesome-openmage - Fballiano_ImageCleaner
README
# The best image cleaner for OpenMage (and Magento 1.9)
If you find my work valuable, please consider sponsoring
Features
---------
- Identify and remove orphan **category images** (reading data from the default "image" attribute and **all custom attributes** of type "image").
- Identify and remove orphan **product images** (reading data from media_gallery) and **product images cache**.
- Identify and remove orphan **WYSIWYG images and files** (reading used images/files from cms_block, cms_page, core_email_template tables and all /skin/frontend CSS files).
- Check before delete: you can review (and download) the identified images before removing them.
- Possibility to **blacklist folders and/or files** (with wildcard support) not to ever identify them as orphans.
- Possibility to **flush media/import, media/tmp, var/export, var/importexport**.
- Compatible with **Magento 1.9, OpenMage 19 and OpenMage 20 on PHP >= 7.4**.How to use it
-------------
- Install via composer (`composer require fballiano/openmage-image-cleaner`),
modman (`modman clone https://github.com/fballiano/openmage-image-cleaner`)
or any other way you like
- Navigate to backend's "System -> Tools -> Image Cleaner" section
- Click "Sync category images" and/or "Sync product images" or "Sync WYSIWYG"
- The grid will show all the images that are detected as orphans
- Delete them (check the backup section!) one by one or with a mass actionIf you want to change the default thumbnail size (in the image cleaner admin grid) go to
"System -> Configuration -> Advanced -> Admin -> Image Cleaner".If you want to blacklist folders or files go to
"System -> Configuration -> Advanced -> Admin -> Image Cleaner".Backup!!!
---------
Backup your database and files before launching the cleaning process!!!
This module is provided "as is" and I'll not be responsible for any data damage.Support
-------
If you have any issues with this extension, open an issue on GitHub.Contribution
------------
Any contributions are highly appreciated. The best way to contribute code is to open a
[pull request on GitHub](https://help.github.com/articles/using-pull-requests).Developer
---------
Fabrizio Balliano
[http://fabrizioballiano.com](http://fabrizioballiano.com)
[@fballiano](https://twitter.com/fballiano)Licence
-------
[OSL - Open Software Licence 3.0](http://opensource.org/licenses/osl-3.0.php)Copyright
---------
(c) Fabrizio Balliano