Browse Source

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.
Lucas CHOLLET 1 year ago
parent
commit
d9b69c644e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibGfx/TIFFGenerator.py

+ 1 - 1
Userland/Libraries/LibGfx/TIFFGenerator.py

@@ -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"),