feat(viewer): add visual image rotation (90° steps)#3190
Open
vladopol wants to merge 1 commit into
Open
Conversation
Add rotate left/right buttons to the image viewer toolbar. Rotation is visual-only (CSS transform), no file modification. Buttons appear inline in the header for images (jpeg/png/webp). Rotation resets when navigating to next/previous image. Smooth 0.2s transition on rotate. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Adds rotate left / rotate right buttons to the image viewer toolbar for JPEG, PNG and WebP files.
transform: rotate()— no file modificationMotivation
When a photo is taken or shared with incorrect orientation (e.g. portrait vs landscape), there is currently no way to adjust the view without leaving the viewer. This PR addresses issues #1846, #2804, #327, #65 with a minimal, non-destructive implementation.
Screenshots
Test plan
Notes
This is a visual-only rotation. It does not modify the file or EXIF data. A separate feature (with file write permission) could be added to persist the rotation — but that is out of scope for this PR.