I'm currently trying to run the following command
php bin/magento catalog:images:resize
But when it gets part way through I get the following error:
587/1490 [>] 39% 9 mins 54.0 MiB | /d/o/download_6_.pngWarning: imagecreatefrompng(): gd-png: fatal libpng error: Read Error: truncated data in /var/www/vhosts/mywebsite.com/httpdocs/vendor/magento/framework/Image/Adapter/Gd2.php on line 72
I've looked into the file in question and this seems to be the piece of code around line 72.
$this->_imageHandler = call_user_func( $this->_getCallback('create', null, sprintf('Unsupported image format. File: %s', $this->_fileName)), $this->_fileName );
I'm not sure what I need to to to correct this issue. I'd appreciate any advice on how to resolve this.