Skip to content

fix: Fix adding alpha channel to uint16 image - #318

Merged
kylebarron merged 1 commit into
mainfrom
kyle/fix-added-alpha-channel-uint16
Mar 5, 2026
Merged

kylebarron merged 1 commit into
mainfrom
kyle/fix-added-alpha-channel-uint16

Conversation

@kylebarron

@kylebarron kylebarron commented Mar 5, 2026 •

Copy link
Copy Markdown
Member

Testing with this image:

https://data.source.coop/tabaqat/riyadh-sentinel-rgb/Sentinel-2_Satellite_RGB_Riyadh.tif

in addAlphaChannel we were unintentionally casting to uint8clampedarray.

image

Now we're able to render the data, though we should probably default 3-band input to RGB, even if the photometric interpretation says grayscale.

@github-actions github-actions Bot added the fix label Mar 5, 2026
@kylebarron
kylebarron merged commit a374a55 into main Mar 5, 2026
4 checks passed
@kylebarron
kylebarron deleted the kyle/fix-added-alpha-channel-uint16 branch March 5, 2026 23:57
@ds-release-bot ds-release-bot Bot mentioned this pull request Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant