1

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!

2 Answers 2

2

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.

4
  • Thank you, But our file is JPG and We can't convert it. Commented Nov 1, 2019 at 11:47
  • the command would remove interlacing from your png images, I would recommend that you try this on your local/dev setup first and then do on production environment. Commented Nov 1, 2019 at 11:50
  • Thank you. I have run it but it doesn't work. prntscr.com/pr3mnb Do you have any idea? Commented Nov 1, 2019 at 12:19
  • 1
    Sorry about that, please try the updated command. Commented Nov 1, 2019 at 13:56
0

https://prnt.sc/w8hb0e

https://prnt.sc/w8hbar

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

https://prnt.sc/w8hbst

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.