Skip to content

Rotate images functionality#11490

Closed
surinder-tsys wants to merge 12 commits intonextcloud:masterfrom
nextmcloud:nmc/1868-rotate
Closed

Rotate images functionality#11490
surinder-tsys wants to merge 12 commits intonextcloud:masterfrom
nextmcloud:nmc/1868-rotate

Conversation

@surinder-tsys
Copy link
Collaborator

Rotate image functionality added to image files.

How it works:

  1. Open any image in preview mode.
  2. Click on 3 dot menu at top right and then click on Rotate menu option.
  3. On clicking Rotate menu option it will rotate the image 90° clockwise.
  4. Now the rotated image will be uploaded to cloud under 2 case:
    4.1. When user rotates the screen i.e. configuration changes.
    4.2. When user comes back from the preview screen.
  5. We are updating the image thumbnail in cache to give seamless experience to user and also updating the new rotated image file with current one.

Note: Rotate functionality only applicable to JPG and PNG files.

@tobiasKaminsky
Copy link
Member

Feedback from Oliver/Jens:

  • rotate function should not be limited to jpg/png
  • when rotating an image that is not yet downloaded, then download it, rotate, re-upload it

@tobiasKaminsky
Copy link
Member

Feedback from Oliver/Jens:

* rotate function should not be limited to jpg/png

* when rotating an image that is not yet downloaded, then download it, rotate, re-upload it

@surinder-tsys can you address these changes?

@surinder-tsys
Copy link
Collaborator Author

Feedback from Oliver/Jens:

* rotate function should not be limited to jpg/png

* when rotating an image that is not yet downloaded, then download it, rotate, re-upload it

@surinder-tsys can you address these changes?

@tobiasKaminsky we are working this on parallelly but with low priority as these are enhancements. Once they are done we will create separate PR.

@surinder-tsys
Copy link
Collaborator Author

@tobiasKaminsky Can you please review and merge this PR?
Once the the pending enhancements are developed we will raise the separate PR.

@tobiasKaminsky
Copy link
Member

when rotating an image that is not yet downloaded, then download it, rotate, re-upload it

This is needed, as currently otherwise it will overwrite the file, like this:

  • open an image that is not downloaded (small preview is shown)
  • rotate image (preview is rotated)
  • save
    --> small preview is uploaded and overwrites real image

So please either fix it or show rotate option only when file is downloaded.

@surinder-tsys
Copy link
Collaborator Author

rotate option only when file is downloaded.

Hi @tobiasKaminsky, for this is it ok if we hide the rotate option for online files?

@surinder-tsys
Copy link
Collaborator Author

@tobiasKaminsky Updated PR with:

  1. Rotate option only available for offline files.
  2. Extended rotation to all possible image files.

@nextcloud-android-bot
Copy link
Collaborator

@nextcloud-android-bot
Copy link
Collaborator

@AndyScherzinger
Copy link
Member

@surinder-tsys @tobiasKaminsky @ZetaTom looking at #11746 which one will be the one to be merged? I guess we won't have both in, no? Just checking so no efforts are wasted.

@surinder-tsys
Copy link
Collaborator Author

@surinder-tsys @tobiasKaminsky @ZetaTom looking at #11746 which one will be the one to be merged? I guess we won't have both in, no? Just checking so no efforts are wasted.

@AndyScherzinger I will check with the Jens if he is ok with the NC edit functionality or MagentCloud rotate functionality.

@AndyScherzinger
Copy link
Member

Thanks @surinder-tsys for taking care of the clarification 👍

@surinder-tsys
Copy link
Collaborator Author

@AndyScherzinger Here is the Jens update --> "We as MagentaCloud will be using rotate functionality till NextCloud edit functionality will get stable and merged to master."

@AndyScherzinger
Copy link
Member

@surinder-tsys we just merged the image editor work to master, see #11746 - so if that looks good to Jens than we could drop this PR then. Feature will be released with the next feature release of the app.

@surinder-tsys
Copy link
Collaborator Author

Closing the PR as per above discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants