Clipping minimum dimensions 1200x800px

I can’t use the cropping tool to crop images measuring 1200x800px (not 3:2) for use as WordPress images. Yes, I can set the resolution when exporting, but how do I crop them? 1978x1319 is the smallest (see image).

The background is a scan of a 70MP aerial photograph.

Thank you for your help.

Best regards,
Siegfried

Why not? This is how you would do it.

1 Like

It seems like the crop tool has a minimum crop size that is relative to the size of the RAW. I just tried an image from a a 24MP RAW file and a 16MP RAW file and each had a different minimum crop size.

On the images from my 24MP camera it’s quite obvious based on the numbers: The original image is 6000 x 4000 and the minimum crop using the same aspect ratio is 600x400. That’s a clean 10% on each dimension.

Out of curiosity I looked through the code on github and I think this is where it’s enforcing that:

I don’t know if there’s a technical reason for this or not. Having some minimum is good so that users can’t essentially make the clipping area disappear (even though it can easily be reset it could be confusing).

2 Likes

There is indeed a minimum size when cropping with the mouse (you can crop down to about 10% of each dimension). You can get smaller than that by adjusting the “margins” sliders, but that’s rather complicated: they are calibrated in “% of full size” as cropped from the respective side. So getting an exact size at a selected position can get tricky.

Probably the easiest way is to do it in two steps: export an intermediate image at about twice the size you need as a png, then impor that and crop to final size, export as jpeg.

Or calculate the margins you need, set them numerically (right click on the sliders), then move the crop to the required position.

But I admit, both methods are not as easy as I’d like.

2 Likes

This isn’t a 100% view of the scan, but rather a reduction. 1978x1319 (Darktable default) will be reduced to the desired 1200x800 during export.

Can you understand my goal?

Thank you!..Wooww thank you all for the fast answer!!!.. Thank you very much for your answers.

I created an 8000x8000 section and exported it as an 8kx8k TIF.

I imported it back into Darktable, and now I can create and export 1200x800 sections.
This is similar to what “revietor” suggested with PNG files. Unfortunately, there’s no easier way :frowning:

Thanks again for all your help!

Best regards
Siegfried

1 Like

I recommend that you open a feature request/bug report on GitHub, asking to remove this limitation.

2 Likes

If it is felt necessary to protect the user from this, it could be made to require, say, the alt key.

You could also get to a point that the bands where you change the size of the cropped area start to overlap. Meaning you could no longer move the crop area, and it might become ambiguous which band you were trying to use… None of that is good…

I would recommend: This is a very good starting point to get into contributing to darktable and start coding yourself :slight_smile:

BTW there are many more points in the code than the one mentioned above …

I haven’t used the image cropping with border feature yet. I’ve only considered printing the photo with a “fake mount” that has the same dimensions as the photo paper. Because I wanted to simplify the process of gluing it in and fitting it into the real mount. I couldn’t do it with LR and didn’t pursue it further.

As a technical draftsman using a CAD system, I almost exclusively work with absolute numbers and scales when plotting, including in PDFs. The paper dimensions, for example, DIN A4, have a specific aspect ratio, like in Darktable, but are tied to fixed dimensions, e.g., 210x297mm (format: DIN476, 1:1.41).

What I’m trying to say is: I would like to be able to enter cropping with absolute numbers (in pixels) directly, using the numeric keypad.

For example, Full HD 1920x1080 for my YouTube videos or slideshows, 1200x800 for my blog images. The first questian, the 744MB scan.

The pixel size is already displayed here, if I could enter it directly. Perhaps a few standard dimensions as defaults and user sizes. That would be fantastic.

This would continue Darktable’s accuracy, the precision in colors, brightness, and the other modules that are in the 0.00 and 0.000 thousandths range. Not to mention the practical relevance.

What do you think about that?

Thank you for your attention.