Skip to content

Commit

Permalink
Merge pull request #5495 from radarhere/tiff_tags
Browse files Browse the repository at this point in the history
Added CFAPattern, ExifVersion and FlashpixVersion UNDEFINED tags
  • Loading branch information
hugovk committed May 18, 2021
2 parents ae0efcb + c880203 commit 16b9cad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PIL/TiffTags.py
Expand Up @@ -184,7 +184,9 @@ def lookup(tag):
34665: ("ExifIFD", LONG, 1),
34675: ("ICCProfile", UNDEFINED, 1),
34853: ("GPSInfoIFD", LONG, 1),
36864: ("ExifVersion", UNDEFINED, 1),
40965: ("InteroperabilityIFD", LONG, 1),
41730: ("CFAPattern", UNDEFINED, 1),
# MPInfo
45056: ("MPFVersion", UNDEFINED, 1),
45057: ("NumberOfImages", LONG, 1),
Expand All @@ -205,6 +207,7 @@ def lookup(tag):
45579: ("YawAngle", SIGNED_RATIONAL, 1),
45580: ("PitchAngle", SIGNED_RATIONAL, 1),
45581: ("RollAngle", SIGNED_RATIONAL, 1),
40960: ("FlashPixVersion", UNDEFINED, 1),
50741: ("MakerNoteSafety", SHORT, 1, {"Unsafe": 0, "Safe": 1}),
50780: ("BestQualityScale", RATIONAL, 1),
50838: ("ImageJMetaDataByteCounts", LONG, 0), # Can be more than one
Expand Down

0 comments on commit 16b9cad

Please sign in to comment.