darktable icon indicating copy to clipboard operation
darktable copied to clipboard

1:1 crop is not a square when exported

Open lintujuh opened this issue 2 years ago • 1 comments

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

  1. open an image in darkroom
  2. crop it to a square
  3. return to lighttable
  4. export image
  5. check the dimensions

Expected behavior

width and height should be equal

Logfile | Screenshot | Screencast

image image

_1100040.ORF.zip

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

lintujuh avatar Jan 17 '24 07:01 lintujuh

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.

github-actions[bot] avatar Mar 18 '24 00:03 github-actions[bot]

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 perspective to rotate it a couple of degrees. I did not use that module on any of the other images in this set.

grudgingly avatar Mar 30 '24 01:03 grudgingly