feat(viewer): add visual image rotation (90° steps)#3190
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>
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
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.