OpenPDF icon indicating copy to clipboard operation
OpenPDF copied to clipboard

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

Open wider2 opened this issue 2 years ago • 5 comments

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 avatar Oct 12 '23 07:10 wider2

Pull Requests are welcome!

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

asturio avatar Feb 23 '24 14:02 asturio