xviewer corrupted one of my raw photos

Open
#232 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c

Research direction

No source file, test, or entry point is identified in the report. Start by reproducing the orientation-save flow with a representative .cr2 file and compare the saved file with the original using xviewer, Darktable, RawTherapee, and GIMP. Done means determining whether xviewer causes the corruption and documenting a safe recovery or prevention path.

Written by the indexing model from the issue text.

Description

Hi! I'm an amateur photographer.

I wanted to post a #TBT of the first ever portrait I took (about a year ago), and I was looking at the RAW images (.cr2) with xviewer. I changed the orientation of one of them to see how it would look, and when I closed the program it asked me to save/cancel/etc. I mistakenly pressed "Save", but I thought nothing bad would happen.

When I opened Darktable to re-edit the raw image, it said it's not a supported file format.
RawTherapee also can't open it anymore.

The file size changed from the default size (around 24.5 MiB) to 42 MiB.

Is there a way to recover the original .cr2? Maybe it's stored in some temporary folder and I can recover it using something like Recuva but for Linux?

I can still open it with GIMP, so there's still data in there, but editing with GIMP is far from ideal.

I can provide the .cr2 to the devs if you want.

Thanks for any assistance.

Dominant language
C
Stars
92
Forks
47
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from linuxmint/xviewer

All issues in linuxmint/xviewer

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.