Skip to main content

10 posts tagged with "Magento Tutorials"

View All Tags

Reshaping and resizing image files in Magento 2

· 3 min read

In this article, I will show you how to reshape/resize image files in Magento 2. We are going to turn an image into a square, by adding a white background to the smaller dimension of the image. That is, the rectangle image will turn into a square, where the smaller dimension of the image will be extended with a white background. Afterwards, we will save the resized image to a custom location. This way we will have two copies of the image - the original one and the resized one.