darktable-org / darktable-org/darktable
Exported dimensions / crop don't match darkroom
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 13.1k
- Forks
- 1.4k
- Avg merge
- 22h 14m
- Merged PRs (30d)
- 198
Description
Is there an existing issue for this?
- I checked and did not find my issue in the already reported ones
Describe the bug
Exported image dimension differ from darkroom, showing a different crop (crop module is not used).
Steps to reproduce
- Load the image into darktable
- Export as JPG (HQ on/off does not matter)
- Import the JPG into darktable
- Create a snapshot from the JPG
- Open the raw, compare with the snapshot
Expected behavior
exported image should match darkroom
Logfile | Screenshot | Screencast
Darkroom view, image info:
Console (2025-08-12-15-21-18-P1080003.jpg was exported without HQ, 2025-08-12-15-21-18-P1080003_01.jpg with HQ). Pristine config + DB, Darktable 5.2.1 (AppImage), but master exhibits the same behaviour.
$ identify *
2025-08-12-15-21-18-P1080003_01.jpg JPEG 2736x2736 2736x2736+0+0 8-bit sRGB 2.82583MiB 0.000u 0:00.001
2025-08-12-15-21-18-P1080003.jpg JPEG 2736x2736 2736x2736+0+0 8-bit sRGB 2.82583MiB 0.000u 0:00.000
Dimensions look OK, but comparison with snapshot shows differences.
Left edge:
Right edge:
Raw and sidecar + exported versions:
https://tech.kovacs-telekes.org/files/2025-12-17-expored-file-dimensions/
Commit
No response
Where did you obtain darktable from?
darktable.org / GitHub release
darktable version
5.2.1 (but also current master 5.3.0+1005~g3a4f41164a)
What OS are you using?
Linux
What is the version of your OS?
Ubuntu 25.10
Describe your system
No response
Are you using OpenCL GPU in darktable?
None
If yes, what is the GPU card and driver?
OpenCL on/off does not influence the behaviour
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the mismatch using the listed darktable export and snapshot steps, comparing the raw image in darkroom with the exported JPG. Start by tracing the export path and the crop module behavior; done means the exported image matches the darkroom view in dimensions and crop.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- computer-graphics, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100