Resize Product Image in Magento 2

magento-prashantblog-520x245

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

Which steps need to follow For Standard Extension Development for Magento 2

magento-prashantblog-520x245

For a Magento 2 extension, you should be following the Magento EQP (Extension Quality Program) code standards. Magento provides a tool to validate the PSR-2 code standards and most of Magento’s added standards on top of that. Magento has provided the package validation tool, Which detects any kind of packaging errors to reduce the module rejections from the Marketplace. Steps which need to follow For Standard Extension Development for Magento 2 : 1) must have composer.json in root folder of extension(Eg. app/code/Vendor/Module/composer.json) 2) must have registration.php in root folder of…

Read More