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


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.

  • Thank you, But our file is JPG and We can't convert it. 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. 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? Nov 1, 2019 at 12:19
  • 1
    Sorry about that, please try the updated command. Nov 1, 2019 at 13:56



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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.