Image orientation

Hi. In a my Lua script I need to know the correct frame ratio of selected images but I find from image.width and image.height dimensions with no correct orientation.

The question is:
How to have the correct image orientation / the final width x height as I can already see on the screen?

Thanks.

Submit a feature request at Issues · darktable-org/darktable · GitHub asking for output_width, output_height, and orientation to be exposed as part of the dt_lua_image_t data type.

1 Like