Skip to content

Commit 1fca414

Browse files
authored
Merge pull request #3369 from radarhere/tiff_tags
Corrected TIFF tags
2 parents b535d78 + 0c37491 commit 1fca414

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PIL/TiffTags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def lookup(tag):
122122
316: ("HostComputer", ASCII, 1),
123123
317: ("Predictor", SHORT, 1, {"none": 1, "Horizontal Differencing": 2}),
124124
318: ("WhitePoint", RATIONAL, 2),
125-
319: ("PrimaryChromaticities", SHORT, 6),
125+
319: ("PrimaryChromaticities", RATIONAL, 6),
126126

127127
320: ("ColorMap", SHORT, 0),
128128
321: ("HalftoneHints", SHORT, 2),
@@ -159,7 +159,7 @@ def lookup(tag):
159159
529: ("YCbCrCoefficients", RATIONAL, 3),
160160
530: ("YCbCrSubSampling", SHORT, 2),
161161
531: ("YCbCrPositioning", SHORT, 1),
162-
532: ("ReferenceBlackWhite", LONG, 0),
162+
532: ("ReferenceBlackWhite", RATIONAL, 6),
163163

164164
700: ('XMP', BYTE, 1),
165165

0 commit comments

Comments
 (0)