nextcloud / nextcloud/viewer

Rotate / Flip by manipulating EXIF orientation tag

Open
#2,804 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement feature: editor
Dominant language
JavaScript
Stars
119
Forks
72
Avg merge
18h 42m
Merged PRs (30d)
24

Description

Is your feature request related to a problem? Please describe.

The current editor in the viewer app only manipulates the whole image. If saved as JPEG or WEBP, it is a lossy process.

It would be excellent to add the rotation and flip functionality that is already implemented in the Memories app, that only manipulates the orientation in the metadata, and so is lossless.

Since this is a very common operation if you manage your photos in Nextcloud, it should be fast and easy to use, and should not change the image itself, only its metadata.

Describe the solution you'd like

Add the tools from the Memories app to flip and rotate images by manipulating the EXIF tag.

See https://github.com/pulsejet/memories/blob/master/src/components/modal/EditOrientation.vue.

Additional context

Image

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading Memories' src/components/modal/EditOrientation.vue and then locate the corresponding editor entry point in the viewer app. Compare the existing viewer editing flow with the referenced orientation tools. Done means users can rotate and flip supported images by changing only the EXIF orientation metadata, without rewriting image pixels.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.