# HG changeset patch # User MichaƂ Pecio <> # Date 1527414310 -3600 # Node ID 031705583cafb72094d650f597f578d168854465 # Parent 8c1423d43ec260efa513881109f751c7b4acf9f1 Support for Canon ISO tags 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 diff -r 8c1423d43ec2 -r 031705583caf src/exif-common.c --- a/src/exif-common.c Sat May 26 20:20:01 2018 +0100 +++ b/src/exif-common.c Sun May 27 10:45:10 2018 +0100 @@ -384,6 +384,8 @@ 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;