From b6928ba1180ec947afa82ce057fb06b9bcbb2445 Mon Sep 17 00:00:00 2001 From: Todica Ionut Date: Tue, 5 Aug 2025 08:56:52 +0300 Subject: [PATCH 1/5] ISO speed camera Signed-off-by: Todica Ionut --- src/openexr.imageio/exrinput_c.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openexr.imageio/exrinput_c.cpp b/src/openexr.imageio/exrinput_c.cpp index 00489b5b8d..0b015392d2 100644 --- a/src/openexr.imageio/exrinput_c.cpp +++ b/src/openexr.imageio/exrinput_c.cpp @@ -263,9 +263,10 @@ static std::map cexr_tag_to_oiio_std { { "pixelAspectRatio", "PixelAspectRatio" }, { "xDensity", "XResolution" }, { "expTime", "ExposureTime" }, + { "isoSpeed", "ISOSpeed" }, + { "aperture", "FNumber" }, // Ones we don't rename -- OpenEXR convention matches ours { "wrapmodes", "wrapmodes" }, - { "aperture", "FNumber" }, // Ones to prefix with openexr: { "chunkCount", "openexr:chunkCount" }, { "maxSamplesPerPixel", "openexr:maxSamplesPerPixel" }, From c2a3e86b4ed4072d12ce4360f97c01ccb59983b6 Mon Sep 17 00:00:00 2001 From: Todica Ionut Date: Tue, 5 Aug 2025 09:00:37 +0300 Subject: [PATCH 2/5] ISO speed camera Signed-off-by: Todica Ionut --- src/openexr.imageio/exroutput.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openexr.imageio/exroutput.cpp b/src/openexr.imageio/exroutput.cpp index 6fa387f178..3b50ac5ee7 100644 --- a/src/openexr.imageio/exroutput.cpp +++ b/src/openexr.imageio/exroutput.cpp @@ -898,6 +898,7 @@ static ExrMeta exr_meta_translation[] = { ExrMeta("XResolution", "xDensity", TypeFloat), ExrMeta("ExposureTime", "expTime", TypeFloat), ExrMeta("FNumber", "aperture", TypeFloat), + ExrMeta("ISOSpeed", "isoSpeed", TypeFloat), ExrMeta("oiio:subimagename", "name", TypeString), ExrMeta("openexr:dwaCompressionLevel", "dwaCompressionLevel", TypeFloat), ExrMeta("smpte:TimeCode", "timeCode", TypeTimeCode), From 0f205690c2e0da1f73cea5994ad8cf18c77f1b92 Mon Sep 17 00:00:00 2001 From: Todica Ionut Date: Tue, 5 Aug 2025 09:02:05 +0300 Subject: [PATCH 3/5] ISO speed camera Signed-off-by: Todica Ionut --- src/openexr.imageio/exrinput.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openexr.imageio/exrinput.cpp b/src/openexr.imageio/exrinput.cpp index 94293a3fd2..5c5e4cc604 100644 --- a/src/openexr.imageio/exrinput.cpp +++ b/src/openexr.imageio/exrinput.cpp @@ -115,9 +115,10 @@ static std::map exr_tag_to_oiio_std { { "pixelAspectRatio", "PixelAspectRatio" }, { "xDensity", "XResolution" }, { "expTime", "ExposureTime" }, + { "isoSpeed", "ISOSpeed" }, + { "aperture", "FNumber" }, // Ones we don't rename -- OpenEXR convention matches ours { "wrapmodes", "wrapmodes" }, - { "aperture", "FNumber" }, // Ones to prefix with openexr: { "chunkCount", "openexr:chunkCount" }, { "maxSamplesPerPixel", "openexr:maxSamplesPerPixel" }, From 609413da2cff63afc6d0cad68c6c6560c1f0d17b Mon Sep 17 00:00:00 2001 From: Todica Ionut Date: Tue, 5 Aug 2025 09:08:26 +0300 Subject: [PATCH 4/5] ISO speed camera Signed-off-by: Todica Ionut --- src/doc/builtinplugins.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/doc/builtinplugins.rst b/src/doc/builtinplugins.rst index 93772b0bfc..ca31411cac 100644 --- a/src/doc/builtinplugins.rst +++ b/src/doc/builtinplugins.rst @@ -1537,6 +1537,9 @@ The official OpenEXR site is http://www.openexr.com/. * - ``ExposureTime`` - float - expTime + * - ``ISOSpeed`` + - float + - isoSpeed * - ``FNumber`` - float - aperture From ac9eb03e941a052f7ce85895bfd5eecf2ca833cf Mon Sep 17 00:00:00 2001 From: Todica Ionut Date: Tue, 5 Aug 2025 09:14:37 +0300 Subject: [PATCH 5/5] Documentation ISO speed Signed-off-by: Todica Ionut --- src/doc/stdmetadata.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/doc/stdmetadata.rst b/src/doc/stdmetadata.rst index 5ec22ce0c7..6134f0e9f0 100644 --- a/src/doc/stdmetadata.rst +++ b/src/doc/stdmetadata.rst @@ -289,6 +289,10 @@ The following metadata items are specific to photos or captured images. The exposure time (in seconds) of the captured image. +.. option:: "ISOSpeed" : float + + The ISO speed of the camera when it captured the image. + .. option:: "FNumber" : float The f/stop of the camera when it captured the image.