Resize Product Image in Magento 2


Today We are going to describe how to resize the product image in Magento 2. Product image size is the good attribute to make your goods closer to the consumer with the product details. This article shows how to resize product image in Magento 2. In this example, I am loading a product by id and then resizing its image. I will also be injecting the object of Catalog Helper Image class for image resize purpose. Below is a block class of my custom module (Prashant_Common). I have injected an…

Read More