Skip to content

Comments

Treat images with no exif metadata as well-oriented#6006

Merged
WithoutPants merged 1 commit intostashapp:developfrom
OtterBotSociety:bugfix/missing-exif-breaks-image-gallery
Sep 9, 2025
Merged

Treat images with no exif metadata as well-oriented#6006
WithoutPants merged 1 commit intostashapp:developfrom
OtterBotSociety:bugfix/missing-exif-breaks-image-gallery

Conversation

@OtterBotSociety
Copy link
Contributor

Some images fail to be loaded by goexif, but the error raised is not EOF -- it's a hard-coded "failed to find exif intro marker". In turn, the images are falsely assigned width and height of 0, and this causes the ImageWall view to fail the getCommonHeight helper returning NaN. In turn, this leaves all images on any ImageWall including at least one bad-EXIF image with width and height of NaN.

@OtterBotSociety
Copy link
Contributor Author

Related to the same problem with ImageWall that led me to dig in to #4781

@WithoutPants WithoutPants added the bug Something isn't working label Sep 9, 2025
@WithoutPants WithoutPants added this to the Version 0.29.0 milestone Sep 9, 2025
@WithoutPants WithoutPants merged commit 12c4e1f into stashapp:develop Sep 9, 2025
2 checks passed
XGFan pushed a commit to XGFan/stash that referenced this pull request Oct 22, 2025
@OtterBotSociety OtterBotSociety deleted the bugfix/missing-exif-breaks-image-gallery branch November 29, 2025 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants