cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3 error.Gd2.php on line 72 issue, when try to upload .PNG product image

Magento 2.3 error.Gd2.php on line 72 issue, when try to upload .PNG product image

Hi, when i try tu upload a .PNG images on product page, show the error:

 

sample-png.png was not uploaded.
Warning: imagecreatefrompng(): gd-png: fatal libpng error: IDAT: CRC error in *website path* /public_html/vendor/magento/framework/Image/Adapter/Gd2.php on line 72

 

The magento version is 2.3.2 and run with PHP-FPM 7.2.x.

I also tried:
- change php versione

- increase php max uplaod size

- increase php max post size

- check PHP module installed

- Tried to change with others PNG. files

-Tried to change product

- Tried c:c , setup:upgrade , composer install, setup:di:compile, deploy static content etc.

 

HW machine:
Google Cloud Compute Instance 4Core 16Gb RAM 300Gb persistent disk.

Cattura.JPG