[BUG] DNG save creates corrupt files

Open
#1,384 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
python
Domain
embedded-iot

Research direction

Reproduce the DNG save through picamera2 and compare its output with the DNG produced by rpicam-still -r, using darktable to test both files. Record the relevant camera settings and file sizes; done means picamera2 produces a valid, openable DNG comparable to the working rpicam-still output.

Written by the indexing model from the issue text.

Description

When saving a DNG file using picamera2, I get corrupted / 30% smaller file sizes compared to rpicam-still -r myfile.jpg (this also outputs a dng)
I can open the latter, but not the former DNG in my raw editor. (darktable)

In the past, both methods worked fine for me.

Did anything change?

Dominant language
Python
Stars
1.2k
Forks
258
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 raspberrypi/picamera2

All issues in raspberrypi/picamera2

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.