darktable-org / darktable-org/darktable

Exported dimensions / crop don't match darkroom

Open
#19,937 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

no-issue-activity
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
  1. Load the image into darktable
  2. Export as JPG (HQ on/off does not matter)
  3. Import the JPG into darktable
  4. Create a snapshot from the JPG
  5. Open the raw, compare with the snapshot
Expected behavior

exported image should match darkroom

Logfile | Screenshot | Screencast

Darkroom view, image info:
Image

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.
Image

Left edge:
Image
Image

Right edge:
Image
Image

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.