How to learn image dimensions in Darktable?

I’m still a bit of a novice on Darktable (DT). I have NOT been able to figure out how to tell what the dimensions (i.e., width & height) of an image file are. Seems like different units might apply but just knowing the number pixels is good for now.

My reason for asking has to do with some strange results. Most of the time the image files I create are the same size as the raw file that I’m developing which is what I’d expect unless I did something to change that. However, I’ve now experienced a situation where the aspect ratio of the exported image is quite different from the raw file and I have no idea what I might of done to cause this. In this case it is the height of the resulting image that was reduced.

Hoping this might be an easy one for experienced DT users.

The image information module on the left hand side: darktable 4.0 user manual - image information

Hi David,

aspect ratio of the exported image

a) Operating system?
b) darktable version?
c) “exported” – how? Check your settings in lighttable’s export module.

Have fun!
Claes in Lund, Sweden

OK! Thanks to Mica I now know how to find it but I’m still perplexed about what I did to change it.

A screenshot of info from the image in question follows:
DT-ImageInfo

Then a view of the EXIF data from my raw file follows:
DT-RawMetadata

And finally a view of the completed history stack follows:
DT-History

My problem now is that I want to undo whatever caused the change in dimensions but without revising any of the work I intended to do when developing the image.

Try turning off the lens correction module. My guess is that might be the culprit.

As Claes said, have a look at the height and width pixel settings in Export module where you can set what size you want.

I think I found the problem. Darktable is NOT the only software that has the problem. It looks like my goof-up had to do with the camera setting which allows setting an aspect ratio. In this case, it was set to 16:9 which, I think, explains what happened.

However, the reason for shooting raw is that this stuff can be controlled in post processing. I know how to fix it in other programs but NOT DT. This was a hard image to develop and I don’t want to loose any of the stuff that affects appearance.

Hope there is a module that lets me say what dimensions to use for the exported images.

https://docs.darktable.org/usermanual/4.0/en/

Just got a photo of EOS R captured in 16:9 from the internet. No problems here with aspect ratio, it’s exported as captured without having to set anything at all.

Some people already asked about your export-module settings.

grafik

Would you mind to show them? And if nothing else helps, share a raw + xmp?

Oddly that I think darktable doesn’t offer non uniform resizing, neither as a module nor during export. Even if you enter a 4:3 res in export, the photo will be fit into this frame by keeping the aspect ratio.

Following is my export settings where I changed to the size of the raw file. However, the resulting file has a height of 3776.
DT-ExportScreen

I’ve been hunting in the User Manual but find no mention of how the change from actual size of raw data to camera set aspect ratio is done. It looks to me like it happens very early in pipeline. For example, the crop module has a setting called “Original Image” for aspect ratio but it uses the 16:9 as original when the raw data is actually 3:2.

Raw sample?

Did the “zero zero” settings produce the same results you are getting now?
image

YES it did!

Oh, I get it. I misunderstood your problem. I thought, your image was stretched or shrunk, or something like this. :man_facepalming:

You just want to remove the 16:9 set in your camera, but I’m afraid thats not possible with DT :frowning:

It says 4546 px without cropping the borders, so all the pixels should be there. I suppose this is Libraw that handles this part.

Data is there. But metadata says

grafik

and I think there’s no way to tell DT to ignore this. ART / RT do ignore it and open the photo in 3:2. I don’t know if there’s a way to modify the metadata.

I made a sample. The raw has the 16:9 aspect ratio (6720:3776) but raw data is 3:2 (6720:4480). I didn’t do anything to change the neutral settings but did create a jpg with the size set in the Export settings as shown above (6720:4480).

ZIP archive is being uploaded.
AspectRatioSample.7z (41.3 MB)

This is contrary to the whole theory of why raw data is obtained from the camera!

Whole image?

Choose Pass through in Black/White point module. Use crop module to cut off the optical black area.
If I were you I would fill an issue at Github about this and link this thread. Probably Libraw that darktable uses for CR3 files.

1 Like

I was able to update the metadata but Darktable (DT) was unable to process the revised file. After getting fatal error I did try to completely remove the former references to this file from the DT library. However, that didn’t help and of course if I had to do that it would be NO help in solving my problem.

The revised raw file follows:
EOSR0189.CR3 (34.4 MB)