changeset 2761:031705583caf

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
author Michał Pecio <>
date Sun, 27 May 2018 10:45:10 +0100
parents 8c1423d43ec2
children 735a3fbc4b28
files src/exif-common.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;