Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WEBP format not supported when try to attach image to PDF in openPdf 1.3.30 #962

Open
wider2 opened this issue Oct 12, 2023 · 1 comment
Labels

Comments

@wider2
Copy link

wider2 commented Oct 12, 2023

Describe the bug
When i upload WEBP image, I can convert it to the byte array
but there is no possibility to convert it to Image object inside openPDF 1.3.30:

Image image = Image.getInstance(pictureArray);

it will return null, because getInstance does not support them

WEBP is not an exotic format, it appears quite often during the work.

@wider2 wider2 added the bug label Oct 12, 2023
@wider2 wider2 changed the title JFIF format not supported when try to attach image to PDF in openPdf 1.3.30 WEBP format not supported when try to attach image to PDF in openPdf 1.3.30 Oct 12, 2023
@asturio
Copy link
Member

asturio commented Feb 23, 2024

Pull Requests are welcome!

Only don't try to re-implement everything in OpenPDF. There is probably a library we can use for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants