not a PNG file in FPDF

我的未来我决定 提交于 2019-12-08 10:42:40

问题


In FPDF, I am using this function to print image on pdf file.

$this->Image("./media/logo_291.png",1,1,$image_size);

It's working fine in .jpg file. But not in .png. I checked on my server. The file is already there. When I change entire image with .jpg extension, then it works but not for .png format file.

ERROR

FPDF error: Not a PNG file: ./media/logo_291.png

EDIT

I can see the .png file in my browser. It's just problem with FPDF.

来源:https://stackoverflow.com/questions/25980078/not-a-png-file-in-fpdf

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!