Skip to content

fix: Fix rendering of YCbCr-encoded JPEG images#249

Merged
kylebarron merged 2 commits intomainfrom
kyle/fix-render-ycbcr
Feb 19, 2026
Merged

fix: Fix rendering of YCbCr-encoded JPEG images#249
kylebarron merged 2 commits intomainfrom
kyle/fix-render-ycbcr

Conversation

@kylebarron
Copy link
Member

@kylebarron kylebarron commented Feb 19, 2026

With the switch to @cogeotiff/core, we now handle JPEG decoding via canvas, which automatically handles YCbCr -> RGB before it gets to us, so we don't have to do it again on the GPU.

image

@github-actions github-actions bot added the fix label Feb 19, 2026
@kylebarron kylebarron merged commit 2af2a47 into main Feb 19, 2026
3 checks passed
@kylebarron kylebarron deleted the kyle/fix-render-ycbcr branch February 19, 2026 21:16
@ds-release-bot ds-release-bot bot mentioned this pull request Feb 19, 2026
kylebarron added a commit that referenced this pull request Feb 19, 2026
As noticed in
#249, we weren't
handling unaligned edge tiles correctly.

This PR ensures we render edge tiles correctly by implementing support
for non-boundless reads.

### Change list

- `GeoTIFF.fetch_tile` gets a new parameter `boundless: boolean` that
defaults to `true` (to match `async-geotiff` in Python), but we set to
`false` here for cleaner rendering.

<img width="605" height="656" alt="image"
src="https://github.com/user-attachments/assets/3d36efe7-59a9-42d7-9f0f-d86ab2a4ad23"
/>
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