Nerd For Tech
Published in

Nerd For Tech

Magento2: Image resize not working › › Aryan Srivastava

Magento2: Image resize not working › › Aryan Srivastava

Product images are stored in cache while creating product from admin. Sometime while adding or updating product the image does not work properly because of cache.

You can try following steps, I hope it will definitely works for you:

  1. Go to pub/media/catalog/product folder and you will see folder.
  2. Rename cache folder. (Ex. cache-, cache_bkp, etc)
  3. Create resized product image by execution following commands
php bin/magento indexer:reset 
php bin/magento indexer:reindex
php bin/magento catalog:images:resize
php bin/magento cache:flush

Note: If still facing issue, check file permission of pub, var, generated folder and then try all above steps.

Hope this article helped you. If you have any queries, you can ask me directly over email at or contact me here.

If you want a live session, do direct ping me on LinkedIn I will arrange an online session on weekends.

Originally published at on March 30, 2022.




NFT is an Educational Media House. Our mission is to bring the invaluable knowledge and experiences of experts from all over the world to the novice. To know more about us, visit

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aryan Srivastava

Aryan Srivastava

Magento Frontend Developer at Magneto IT Solutions

More from Medium

WordPress Vs Joomla Vs Drupal: Know Which CMS Platform Is Most Secure!

How To Create A Simple WordPress Plugin From Scratch

5 Best WordPress Backup Plugins For 2022

Content Ignite release v.1.0 Wordpress plugin for Publishers