Skip to content

Use BMP image encoding between worker and main thread#557

Merged
bobsingor merged 3 commits intoembedpdf:mainfrom
jonashaag:feature/bmp-encoding
Mar 31, 2026
Merged

Use BMP image encoding between worker and main thread#557
bobsingor merged 3 commits intoembedpdf:mainfrom
jonashaag:feature/bmp-encoding

Conversation

@jonashaag
Copy link
Copy Markdown
Contributor

@jonashaag jonashaag commented Mar 29, 2026

Saves lots of time when rendering using background worker in the browser.

An even more aggressive change would be to allow ImageBitmap as part of the interface, not only Blob, and then use <canvas> in the browser for rendering. That would eliminate one buffer clone (~ 40 ms in my experiments) and bring down total time to show a tile to a couple of ms only.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 29, 2026

@jonashaag is attempting to deploy a commit to the OpenBook Team on Vercel.

A member of the Team first needs to authorize it.

@bobsingor bobsingor merged commit 3a4896e into embedpdf:main Mar 31, 2026
0 of 5 checks passed
@github-actions github-actions bot mentioned this pull request Mar 31, 2026
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.

2 participants