I have installed Magento 2.3.2 and migrated all custom module, database, media folder from 2.2.7. But now the product images on frontend are not correct. I have set image size 165 * 165. And when I try to resize via php bin/magento catalog:image:resize, I meet this error.

Area code is already set

How to fix this?


1 Answer 1


I have fixed this issue by upgrading Magento core module.


But by default, it isn't allowed for developers to change Magento core module code.

Also after image resize, though I have made a list with 45 images in my theme/ect/view.xml, but each product has only 23 resized images in cache folder.

Is there other way to fix this?

  • I have resized product images successfully by upgrading my view.xml file. I have had only width and height attribute, so I added aspect_ratio and frame attribute. Commented Jul 20, 2019 at 19:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.