瀏覽代碼

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 年之前
父節點
當前提交
d9b69c644e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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"),