Title: Magento 2 Image Clean
1Image Clean for Magento 2 User Guide
- Table of Content
- Extension Installation Guide
- Configuration
- Unused Category Images Cleanup
- Used Product Images Cleanup
- Unused Product Images Cleanup
- Image Cleanup Using SSH Commands
Image Clean for Magento 2
Meetanshi
2- Extension Installation
- For Magento Marketplace Customers
- Create a folder structure in Magento root as
app/code/Meetanshi/ImageClean - Download and extract the zip folder and upload
our extension files to the app/code/Meetanshi/Ima
geClean via FTP. - Login to your SSH and run below commands step by
step - php bin/magento setupupgrade
- For Magento version 2.0.x to 2.1.x - php
bin/magento setupstatic-contentdeploy - For Magento version 2.2.x above - php
bin/magento setupstatic-contentdeploy f - php bin/magento cacheflush
- For Meetanshi Customers
- Extract the zip folder and upload our extension
to the root of your Magento 2 directory via FTP. - Login to your SSH and run below commands step by
step - php bin/magento setupupgrade
- For Magento version 2.0.x to 2.1.x - php
bin/magento setupstatic-contentdeploy - For Magento version 2.2.x above - php
bin/magento setupstatic-contentdeploy f - php bin/magento cacheflush
Image Clean for Magento 2
Meetanshi
3- Configuration
- For configuring the extension, login to Magento
2, move to Stores ? Configuration ? Image Clean
where you can find various settings to enable the
extension. - Clean Resources Select the resources to delete
in case of both the manual and periodic cleanup. - Maximum Images to Process in Each Attempt Enter
the number of images to process in each attempt. - Manual Clean Up Click the button to clean up the
selected resources manually. - Schedule Periodic Clean Up Select YES to
schedule periodic cleanup on a regular basis. - Clean Up Frequency Set frequency for the
periodic cleanup. - Start Time Define start time for the periodic
clean up to start image clean up on the
scheduled frequency.
Image Clean for Magento 2
Meetanshi
43. Unused Category Images Cleanup Apart from the
manual and periodic cleanup, the extension
enables to delete the unused category images
from Image Clean ? Unused Category Images. Click
Update Image List button to update the list of
unused category images. After updating the image
list, all the unused category images get listed
along with the details like image, path, and
size. These images can be deleted using mass
delete action or individually using delete action.
Image Clean for Magento 2
Meetanshi
54. Used Product Images Cleanup Apart from the
manual and periodic clean up, the extension
allows to update the list of product images in
use and delete them from Image Clean ? Used
Product Images. On click of Update Image List
button, used images from product media get
fetched and listed in the grid along with the
details like product name, product image, image
path and size. These images can be deleted after
selection using mass delete action. Also, you can
delete individual image using delete action. If
you have recently disabled some store products
and will no longer enable it, you can use this
feature to remove product images in use.
Image Clean for Magento 2
Meetanshi
65. Unused Product Images Cleanup Apart from the
manual and periodic clean up, the extension
allows to update the list of unused product
images and delete them from Image Clean ? Unused
Product Images. On click of Update Image List
button, unused images from product media get
fetched and listed in the grid along with the
details like image, path and size. These images
can be deleted after selection using mass delete
action. Also, you can delete individual image
using delete action.
Image Clean for Magento 2
Meetanshi
7- Success Message
- Once the selected images are deleted, the success
message to acknowledge the delete action is
displayed as shown below.
- Using SSH Commands for Image Cleanup
- Apart from using manual clean up, you can use SSH
commands to perform each cleanup action. When
you have tons of products and hundreds of
categories, using the manual cleanup may cause
the process timeout. With SSH commands, you can
sit back and let automation perform the action
without worrying about the process timeout. - php bin/magento imagecleanproduct-unused-imagefe
tch - To fetch unused product images. - php bin/magento imagecleanproduct-used-imagefetc
h - To fetch used product images. - php bin/magento imagecleancategory-imagefetch -
To fetch unused images of categories. - php bin/magento imagecleanproduct-used-imageclea
n - To clean used product images. - php bin/magento imagecleanproduct-imageclean -
To clean unused product images. - php bin/magento imagecleancategory-imageclean -
To clean unused images of categories.
Image Clean for Magento 2
Meetanshi