Skip to content

fix: respect createImageBitmap options on main thread when no crop#107

Open
chiefcll wants to merge 1 commit into
mainfrom
fix/image-bitmap-premultiply-options
Open

fix: respect createImageBitmap options on main thread when no crop#107
chiefcll wants to merge 1 commit into
mainfrom
fix/image-bitmap-premultiply-options

Conversation

@chiefcll

Copy link
Copy Markdown
Contributor

Ensure options (premultiplyAlpha, colorSpaceConversion, imageOrientation) are passed to createImageBitmap on the main thread when no crop is requested. Previously, it incorrectly fell back to basic createImageBitmap since imageBitmapSupported.basic is true on all browsers supporting createImageBitmap. This aligns the main thread logic with the web worker's correct check.

Ensure options (premultiplyAlpha, colorSpaceConversion, imageOrientation) are passed to createImageBitmap on the main thread when no crop is requested. Previously, it incorrectly fell back to basic createImageBitmap since imageBitmapSupported.basic is true on all browsers supporting createImageBitmap. This aligns the main thread logic with the web worker's correct check.
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.

1 participant