Support for Canon ISO tags
authorMichał Pecio <>
Sun, 27 May 2018 09:45:10 +0000 (10:45 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sun, 27 May 2018 09:45:10 +0000 (10:45 +0100)
Some pre-2010 Canon cameras didn't write the standard EXIF ISO speed
tag. The ISO speed of photos taken with such cameras can be found in
the proprietary Exif.CanonSi.ISOSpeed tag

src/exif-common.c

index 67caac3..bf47562 100644 (file)
@@ -384,6 +384,8 @@ static gchar *exif_build_formatted_ISOSpeedRating(ExifData *exif)
        gchar *text;
 
        text = exif_get_data_as_text(exif, "Exif.Photo.ISOSpeedRatings");
+       /* old canon may set this instead */
+       if (!text) text = exif_get_data_as_text(exif, "Exif.CanonSi.ISOSpeed");
        /* kodak may set this instead */
        if (!text) text = exif_get_data_as_text(exif, "Exif.Photo.ExposureIndex");
        return text;