-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Problem with export dimensions #18781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I see the problem - you can reproduce it with
The problem is twofold:
I can think of two solutions:
Other suggestions? I can try to make a PR once a solution is agreed upon |
Why not use |
I don't think this is the culprit code part. Here we make sure that we always have complete data available in the pixelpipe (not having black single line borders or alike). Thus we use For me the tricky/bad part is happening in EDIT: no sure about above :-( |
I went ahead and made a PR that calculates the scale for each dimension separately. I tested this with several images and different aspect ratios and was always able to get the exact specified dimensions in the output. I also set
I think the problem is it will still choose the incorrect value in some cases. Better to calculate what is needed precisely. |
Hi, just to clarify I opened this issue because there is currently no way in Darktable to easily output images of well known dimensions like 4k (3840 x 2160). And be 100% sure that the dimension will be respected. Because currently the best way to be 100% sure to make a 4k (3840 x 2160) image is actually to export with Darktable the full scale image and then do a rescale + crop in GIMP. But it is not very convenient in my opinion. |
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
Describe the bug
Bug:
Darktable doesn't respect the export dimensions when I want to export an image in 4k (3840 x 2160).
Explanation:
Let's say I have a large image with any aspect ratio. By large image I mean that it has more pixels than in 3840 x 2160. So it can be for instance 6000 x 3376.
Now let's say I want to export my image as 4k (3840 x 2160). What I do is to crop the image with the 16:9 HDTV preset of the crop module because 4k (3840 x 2160) is 16:9. This will allow in the export step to have the perfect aspect ratio to export to 3840 x 2160. Important: let's say I don't crop to a smaller size than 3840 x 2160. So there is no upscaling to then export to 3840 x 2160, only downscaling. Finally I set in the export tab the dimensions to 3840 x 2160.
However, when I hit export and check the dimensions of the produced image I get a 3840 x 2159 not 3840 x 2160 image. This is very bothering and makes it difficult to use Darktable for professional purposes.
Steps to reproduce
Expected behavior
A 3840 x 2160 image should be produced
Logfile | Screenshot | Screencast
No response
Commit
No response
Where did you obtain darktable from?
darktable.org / GitHub release
darktable version
5.0.1
What OS are you using?
Windows
What is the version of your OS?
Windows 11
Describe your system
No response
Are you using OpenCL GPU in darktable?
None
If yes, what is the GPU card and driver?
No response
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
pixls.us thread
The text was updated successfully, but these errors were encountered: