Skip to content

Conversation

@YousefED
Copy link
Collaborator

@YousefED YousefED commented Dec 18, 2024

This PR adds an ODT exporter, with support for a customizable header & footer.

@vercel
Copy link

vercel bot commented Dec 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Mar 4, 2025 1:26pm
blocknote-website ✅ Ready (Inspect) Visit Preview Mar 4, 2025 1:26pm

Copy link
Contributor

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

https://github.com/unjs/image-meta

Copy link
Collaborator Author

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)

@nperez0111
Copy link
Contributor

The export looks really good. Good job here @areknawo

@nperez0111 nperez0111 merged commit 2ef89c7 into main Mar 4, 2025
6 of 7 checks passed
@nperez0111 nperez0111 deleted the feature/odt-export branch October 21, 2025 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants