Skip to content

Regression fix for bounds check bug where images > 2048px could have data missing from the bottom right corner - #321

Merged
wash2 merged 1 commit into
pop-os:masterfrom
itaylor:master
Apr 10, 2026
Merged

Regression fix for bounds check bug where images > 2048px could have data missing from the bottom right corner#321
wash2 merged 1 commit into
pop-os:masterfrom
itaylor:master

Conversation

@itaylor

@itaylor itaylor commented Apr 10, 2026

Copy link
Copy Markdown

After updating yesterday to the latest libcosmic widgets for an app I'm working on that deals with photos, I saw that some of my larger photos were missing info from their bottom right corner. Smaller images were all fine, as were thumbnails that I created from the larger images, which was puzzling, because I'd originally thought it was an image decoding problem.

I traced it back to this bounds check that was added in the pop os fork of iced with #296, which it looks like doesn't account for fragments that started on the last row, basically. The change in this patch fixes it for me locally.

Previous behavior: images larger that 2048px would have their bottom
right corners transparent because the info didn't get uploaded to the
GPU
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