1:1 crop is not a square when exported
Describe the bug
Cropping an image to 1:1 doesn't produce a square when exported. In my example case the image is 3912×3909.
Steps to reproduce
- open an image in darkroom
- crop it to a square
- return to lighttable
- export image
- check the dimensions
Expected behavior
width and height should be equal
Logfile | Screenshot | Screencast
Commit
Don't know
Where did you obtain darktable from?
self compiled
darktable version
darktable 4.7.0+295~g54ae10de6d
What OS are you using?
Windows
What is the version of your OS?
Win 11 Enterprise 23H2
Describe your system?
No response
Are you using OpenCL GPU in darktable?
Yes
If yes, what is the GPU card and driver?
NVIDIA T500, 537.79
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response
This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.
I've just hit this issue prepping a few images for IG (please don't shame me). First time using Darktable for a while.
Version 4.6.1 on Arch Linux. Not using OpenCL. Images are full-size 14-bit lossless-compressed NEFs from a Nikon D850.
I processed 9 images and cropped them using the 1:1 ratio in the crop module. The crop tool overlay in the darkroom shows a square ratio (i.e. same width and height in pixels), but all but one image are not quite square when checking export width/height in the image info panel in the lighttable. A couple of things I notice from this set:
- The image that is square is the most heavily cropped, at 2717 pixels a side. The next-smallest crop in the set is 3270 pixels a side, export size is 3270 width/3269 height.
- If the picture was taken with the camera in landscape orientation, the export height will be one pixel smaller than the export width. If the picture was taken in portrait orientation (and auto-oriented by Darktable), then the export width will be one pixel smaller than the height.
- One image in the set has an export width of 5059 pixels, and export height of 5061, a difference of 2. That one was taken in portrait orientation, but also I used
rotate and perspectiveto rotate it a couple of degrees. I did not use that module on any of the other images in this set.