Recent Posts


Magento 2: Debugging Product Image Creation


Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

No Frills Magento Layout is the only Magento front end book you'll ever need. Get your copy today!

A quick code-point mention

#File: app/code/Magento/Catalog/Model/Product/Image.php
public function resize()
    if ($this->getWidth() === null && $this->getHeight() === null) {
        return $this;
    $this->getImageProcessor()->resize($this->_width, $this->_height);
    return $this;

This method is where Magento 2 will kick-off creation of all those resized images in the cache folders. This is a good place to kick off debugging if you’re having trouble with the automatic image creation.

Also – make sure GD is installed 🙂

Copyright © Alan Storm 1975 – 2018 All Rights Reserved

Originally Posted: 9th December 2015