-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
feature: odt exporter #1331
feature: odt exporter #1331
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
ae02405
to
4ab6ef7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd use image-meta
which is a much more lightweight lib, and is in plain JS (sharp is natively compiled I think). This would also work in both browsers & node
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Nice to get rid of sharp.
- I've extracted the util file to @shared (as it was also used for docx)
- changed sharp to image-meta
- only import image-meta on node / vitest, as browser side it's not necessary (we use
createImageBitmap
)
The export looks really good. Good job here @areknawo |
358c2bc
to
4c57877
Compare
19ef51b
to
358c2bc
Compare
This PR adds an ODT exporter, with support for a customizable header & footer.