Repository navigation
feat: in-app image preview - #138
Merged
Merged
Conversation
nextestudios
force-pushed
the
feature/57-image-preview
branch
6 times, most recently
from
September 27, 2026 04:56
e387d41 to
61c6d5a
Compare
South on a JPG/PNG/GIF/BMP/WebP opens a preview decoded off the UI thread with WIC. The real format, file size and declared resolution are checked before decoding, so small files declaring huge images are refused. Zoom with the triggers, pan with the D-pad, next/previous in list order; nothing is executed and archive entries are not previewed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
nextestudios
force-pushed
the
feature/57-image-preview
branch
from
September 27, 2026 04:59
61c6d5a to
f5d0bf7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ImagePreviewPolicy(Core) reads only the header, detects the real format from the content (not the extension) and refuses files over 100 MB or declared resolutions over 80 MP. Decoding (WicImageDecoder, App) runs on the thread pool with WIC, first frame only, scaled during decode to ≤ 4096 px on the long side (~64 MB), then EXIF-rotated in managed code. Nothing is executed.Tests
docs/TESTING.md): real WIC decoding on Windows, 4K rendering, UI stays responsive on a huge image, formats (transparency, GIF, WebP), EXIF rotation, Narrator.Closes #57
🤖 Generated with Claude Code