From 098e4c36d6da27f73ebe0fbf3770a3150f6ca5a3 Mon Sep 17 00:00:00 2001 From: "Eric W. Brown" Date: Fri, 18 Jul 2014 22:02:14 -0400 Subject: [PATCH] Further populated Exif values in TiffTags. Added lots more of the possible Exif values per the EXIF specifications. --- PIL/TiffTags.py | 50 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/PIL/TiffTags.py b/PIL/TiffTags.py index ccbd56507..f4420aacc 100644 --- a/PIL/TiffTags.py +++ b/PIL/TiffTags.py @@ -148,10 +148,24 @@ TAGS = { 34675: "ICCProfile", # Additional Exif Info + 33434: "ExposureTime", + 33437: "FNumber", + 34850: "ExposureProgram", + 34852: "SpectralSensitivity", + 34853: "GPSInfoIFD", + 34855: "ISOSpeedRatings", + 34856: "OECF", + 34864: "SensitivityType", + 34865: "StandardOutputSensitivity", + 34866: "RecommendedExposureIndex", + 34867: "ISOSpeed", + 34868: "ISOSpeedLatitudeyyy", + 34869: "ISOSpeedLatitudezzz", 36864: "ExifVersion", 36867: "DateTimeOriginal", 36868: "DateTImeDigitized", 37121: "ComponentsConfiguration", + 37122: "CompressedBitsPerPixel", 37377: "ShutterSpeedValue", 37378: "ApertureValue", 37379: "BrightnessValue", @@ -165,12 +179,46 @@ TAGS = { 37396: "SubjectArea", 37500: "MakerNote", 37510: "UserComment", + 37520: "SubSec", + 37521: "SubSecTimeOriginal", + 37522: "SubsecTimeDigitized", 40960: "FlashPixVersion", 40961: "ColorSpace", 40962: "PixelXDimension", 40963: "PixelYDimension", - 40965: "InteroperabilityIFDPointer", + 40964: "RelatedSoundFile", + 40965: "InteroperabilityIFD", + 41483: "FlashEnergy", + 41484: "SpatialFrequencyResponse", + 41486: "FocalPlaneXResolution", + 41487: "FocalPlaneYResolution", + 41488: "FocalPlaneResolutionUnit", + 41492: "SubjectLocation", + 41493: "ExposureIndex", + 41495: "SensingMethod", + 41728: "FileSource", + 41729: "SceneType", + 41730: "CFAPattern", + 41985: "CustomRendered", + 41986: "ExposureMode", + 41987: "WhiteBalance", + 41988: "DigitalZoomRatio", + 41989: "FocalLengthIn35mmFilm", + 41990: "SceneCaptureType", + 41991: "GainControl", + 41992: "Contrast", + 41993: "Saturation", + 41994: "Sharpness", + 41995: "DeviceSettingDescription", + 41996: "SubjectDistanceRange", 42016: "ImageUniqueID", + 42032: "CameraOwnerName", + 42033: "BodySerialNumber", + 42034: "LensSpecification", + 42035: "LensMake", + 42036: "LensModel", + 42037: "LensSerialNumber", + 42240: "Gamma", # MP Info 45056: "MPFVersion",