Closed devEntrega closed 5 years ago
JPG images are supported, see this example. Might your JPG image file have the wrong extension, or the type argument to Image()
be incorrect?
JPG images are supported, see this example. Might your JPG image file have the wrong extension, or the type argument to
Image()
be incorrect?
I see, now the problem is when I change png to jpg, I get panic error when I try to get ImageInfo, I "register" and same results (nil), with PNG works without problem even I don't register.
Could it be corrupt JPG image? Does it display properly with a browser? When you run go test
is the file pdf/Fpdf_Image.pdf generated properly?
Please reopen if this problem can be pinpointed to a bug in gofpdf rather than just an invalid image.
Just the title says, I can't add picture with JPG format, it appears the error "not a PNG buffer", is JPG format supported or not?
Thanks.