Project

General

Profile

Bug #12082

two images with crop aspect=3:2 export with 1 px size difference in the smaller dimension

Added by Hauke Rehfeld over 1 year ago. Updated 7 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
General
Target version:
-
Start date:
03/14/2018
Due date:
% Done:

0%

Affected Version:
2.4.1
System:
other GNU/Linux
bitness:
64-bit
hardware architecture:
amd64/x86

Description

I have a bunch of images that are all set to 3:2, but export
with a 1 px width difference (2338/2339:3508). I use crop & rotate to fix the aspect ratio as 3:2, then export from
lighttable with fixed max w=h=3508.

I guess the rounding code for exporting is broken so that it
doesn't always round to the same w:h ratio? See https://gist.github.com/7f84a016e8acdb84e756a24b4113f6db . With no knowledge of the code I would expect it to use the crop
aspect ratio for final size (instead of the the actual aspect
ratio after cropping, as that is inprecise, see example above).

Here are two "minimal" example xmps:
https://gist.github.com/hrehfeld/b089f385e3137f878fbd23e3494accd6

$ pacman -Q darktable
darktable 2:2.4.1-2

This is currently stopping me from using DT to export my photos, help! :(

History

#1 Updated by Hauke Rehfeld over 1 year ago

The original images show 6048x4024 as size in DT.

#2 Updated by Christopher Smith 7 months ago

I can confirm the same bug in 2.4.3 and 2.6.0-rc1 (rc2 isn't in Gentoo yet) with an aspect ratio of exactly 1.00 (selected from "square" in the dropdown). Additionally, even though the selector shows an exact size of 5040x5040, the output JPEG is 5056x5057.

Also available in: Atom PDF