The problem and steps to reproduce
The problem is somehow related to #2849 yet I'm using vanilla darktable from ubuntu repos.
Expected behavior
I expect that a cropped to 6000x4000 image would be exported as 6000x4000
Platform (please complete the following information):
compile options:
bit depth is 64 bit
normal build
SSE2 optimized codepath enabled
OpenMP support enabled
OpenCL support enabled
Lua support enabled, API version 5.0.1
Colord support enabled
gPhoto2 support enabled
GraphicsMagick support enabled
OpenEXR support enabled
```
Does setting "allow upscaling" to "yes" in the export module help? Otherwise, if you're absolutely sure you have a pixel-precise cropping, you could just set the output dimensions to zero, for no scaling. The problem is that darktable's cropping module isn't really designed for pixel-precise adjustment; that type of thing is better handled in a paint-type program like GIMP after exporting.
This issue did not get any activity in the past 30 days and will be closed in 7 days if no update occurs. Please check if the master branch has fixed it since then.
I have the same problem with uncropped pictures in darktable 3.0.1 on NixOS 20.03.
This is independent of whether OpenCL is switched on or off and whether upscaling or HQ resampling is activated.
According to the image information in darktable, each picture has dimensions 3724x2754, while some appear as 3724x2753 in the output. The pictures are RAW (RW2) images from a Lumix DMC-FZ28 with only mandatory filters applied.
@jorsn :
The problem is that darktable's cropping module isn't really designed for pixel-precise adjustment; that type of thing is better handled in a paint-type program like GIMP after exporting.
same whith exporting raw - it's basically a "rounding" problem and if you want exact pixel dimensions it's not darktalbe's job. Additionally you actually get MORE pixels from darktable than form your camera's JPEG (which is max 3648 x 2736 compared to dt's 3724x2754) :)
If you need exact pixel dimmensions, crop in gimp/imagemagick etc.
Should be fixed already in 3.2
Apologies to @jenshannoschwalm and I need to correct myself from earlier: in dt 3.2.1 both exact crop and export with exact dimmensions work pixel perfect!
Most helpful comment
Should be fixed already in 3.2