LibGfx/TIFF: Allow any number of values for the tag BitsPerSample

Only some specific number of values should be allowed, but let's accept
everything for now and add these checks when the generator will be more
mature.
This commit is contained in:
Lucas CHOLLET 2023-12-01 18:44:34 -05:00 committed by Sam Atkins
commit d9b69c644e
Notes: sideshowbarker 2024-07-18 03:35:30 +09:00

View file

@ -53,7 +53,7 @@ Tag = namedtuple(
known_tags: List[Tag] = [
Tag('256', [TIFFType.UnsignedShort, TIFFType.UnsignedLong], [1], None, "ImageWidth"),
Tag('257', [TIFFType.UnsignedShort, TIFFType.UnsignedLong], [1], None, "ImageHeight"),
Tag('258', [TIFFType.UnsignedShort], [3], None, "BitsPerSample"),
Tag('258', [TIFFType.UnsignedShort], [], None, "BitsPerSample"),
Tag('259', [TIFFType.UnsignedShort], [1], None, "Compression", Compression),
Tag('273', [TIFFType.UnsignedShort, TIFFType.UnsignedLong], [], None, "StripOffsets"),
Tag('278', [TIFFType.UnsignedShort, TIFFType.UnsignedLong], [1], None, "RowsPerStrip"),