Skip to content

Conversation

@IbrahimCSAE
Copy link
Collaborator

@IbrahimCSAE IbrahimCSAE commented Nov 19, 2025

Summary

  • Add an OffscreenCanvas-based JPEG Baseline color decoder to the worker decoders.
  • Route 8-bit color JPEGs through it so the full decode stays in the worker instead of bouncing back to the main thread
  • Simplify the browser entry point since it no longer needs to pass a canvas down to the worker

That keeps the fast path but avoids running the browser decoder on the main thread for color JPEGs.

@IbrahimCSAE IbrahimCSAE changed the title feat: decode color baseline JPEGs in worker feat(decoders): decode color baseline JPEGs in worker Nov 19, 2025
@IbrahimCSAE
Copy link
Collaborator Author

IbrahimCSAE commented Nov 19, 2025

Might need to make this optional due to offscreen canvas support in browsers, will get to it.

@sedghi
Copy link
Member

sedghi commented Nov 19, 2025

yes please make it optional default false

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