When i print invoice in magento give a error regarding png


I am newbie on digital ocean server.I have installed magento2 in droplet. when i print invoice give a below error.

“Alpha PNGs with bit depth > 8 are not yet supported”

is it means server does not support?

Please help me.



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Thanks for reply.

after above solution one another problem show. Give error folder is not writable. See below

The path “.:///var/www/html/magento2/var/var/www/html/magento2/var/” is not writable

Here my root Path is /var/www/html/magento2/ but this path showing twice when i generate pdf and give a writable permission error.

Please help me


You may need to install ImageMagick (and/or the related PHP module for your distribution) for the app to handle images as needed.

That may allow Magento to process/handle the images as desired.