LibrePDF / OpenPDF

OpenPDF is a free Java library for creating and editing PDF files, with a LGPL and MPL open source license. OpenPDF is based on a fork of iText. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository.
Other
3.54k stars 582 forks source link

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

Open wider2 opened 11 months ago

wider2 commented 11 months ago

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.

asturio commented 7 months ago

Pull Requests are welcome!

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