nextcloud / nextcloud/viewer

[Bug]: cropping an image leads to multiple errors and undesired outcome

Open
#3,162 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

⚠️ This issue respects the following points: ⚠️
Steps to reproduce

I did this on c nc com:

  1. in files, click on an image
  2. resize it
  3. try to overwrite it (save with the same name as original)- button confirming that I want to overwrite has wrong color, text hard to read - I heard a fix for this is underway
Image
  • saving failed
Image
  • then I tried again with a different file name, again an error
Image
  • back in files list: where is the image I just worked with? is it necessary to reload the page to see the file?
  • after reload I see that actually both files were written but in very low quality, I don't think I told the editor to downsize quality?
  • all very confusing
Expected behavior
  • it works, no errors
  • file should be visible in file list immediately after the editor closes, no reload necessary
  • file has same quality as original file
Nextcloud Server version

34 (master)

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

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 reproducing the image resize and save flow in the Nextcloud Files viewer, testing both overwriting the original and saving under a new name. Check the reported save errors, file-list refresh behavior, overwrite confirmation styling, and resulting image quality; done means both saves succeed, the file appears without reloading, and quality is preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.