-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
JP2 image support #1508
Comments
PDF does not support this image type. Even png is not supported directly. See https://pspdfkit.com/blog/2018/understanding-images-in-pdf/ Is necessary to convert the image to one of the supported images by pdfkit, before including in a document. Adding the image conversion in pdfkit is not feasible |
Thanks for your interesting link. I didn't know PDF was so specific with images. But as a side note, he speaks of JP2 in his article here https://pspdfkit.com/blog/2018/understanding-images-in-pdf/#jpeg-2000 , so it is maybe possible to include it. |
Yes its possible but undoable, would increase the bundle size a lot since it would require a dependency on a library that does the conversion. What we can do is implement some way to implement image format through other packages, it can be a plugin system or some kind of image / resource container |
Feature Request
Add JP2 image support
Feature description
Just like #1497, it should be great if PDFKit could understand, parse and display JP2 image.
I use Sharp lib for managing image resize, and it can cope with all these kind of extensions.
Do you plan to add these in a near future?
Thanks
The text was updated successfully, but these errors were encountered: