Question

I have upgraded my Magento from 2.2.7 to 2.3.3. After I upgrade it, I can't run command line:

php -dmemory_limit=2G bin/magento catalog:images:resize

It always shows bug: libpng warning: Interlace handling should be turned on when using png_read_image

enter image description here

Do you have any idea? Thank you!

Était-ce utile?

La solution

You can use convert Linux utility if you're on Linux server/machine. To check arguments you can check here - http://manpages.ubuntu.com/manpages/trusty/man1/convert.im6.1.html

In your image directory you can run the command like following ;

find . -iname '*.png' -execdir convert {} -interlace none {} \;

the above command will find files with png extension and run convert for them.

Autres conseils

https://prnt.sc/w8hb0e

https://prnt.sc/w8hbar

find . -iname '*.png' -execdir convert {} -interlace none {} \;

https://prnt.sc/w8hbst

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top