Skip to content

Set of commands to operate your Magento2 catalog media effectively

Notifications You must be signed in to change notification settings

elevinskii/module-media-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Total Downloads PHP Version Require

What's the problem?

That sometimes might be a case when your Magento content managers use the same images with assigning them to different products - and that may consume a lot of priceless server media storage. Especially if you're on a big number of SKUs, that'll become a real issue.

What to do?

Our small extension helps to discover such duplicates in products' galleries, remove them and point the images to original path.

How to use?

That's easy - bin/magento catalog:images:remove-duplicates

Possible options:

  • --dry-run - performs dry running without any operations with database

Warning

Please create dumps of below listed tables, for being able to revert changes if something goes wrong.

  • catalog_product_entity_media_gallery
  • catalog_product_entity_varchar