Ver código fonte

LibGfx/TIFF: Read Tile-related tags

-`TileWidth`
-`TileWidth`
-`TileOffsets`
-`TileByteCounts`
Lucas CHOLLET 1 ano atrás
pai
commit
e327d357d0
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      Userland/Libraries/LibGfx/TIFFGenerator.py

+ 4 - 0
Userland/Libraries/LibGfx/TIFFGenerator.py

@@ -148,6 +148,10 @@ known_tags: List[Tag] = [
     Tag('315', [TIFFType.ASCII], [], None, "Artist"),
     Tag('317', [TIFFType.UnsignedShort], [1], Predictor.NoPrediction, "Predictor", Predictor),
     Tag('320', [TIFFType.UnsignedShort], [], None, "ColorMap"),
+    Tag('322', [TIFFType.UnsignedShort, TIFFType.UnsignedLong], [1], None, "TileWidth"),
+    Tag('323', [TIFFType.UnsignedShort, TIFFType.UnsignedLong], [1], None, "TileLength"),
+    Tag('324', [TIFFType.UnsignedShort, TIFFType.UnsignedLong], [], None, "TileOffsets"),
+    Tag('325', [TIFFType.UnsignedShort, TIFFType.UnsignedLong], [], None, "TileByteCounts"),
     Tag('338', [TIFFType.UnsignedShort], [], None, "ExtraSamples", ExtraSample),
     Tag('339', [TIFFType.UnsignedShort], [], SampleFormat.Unsigned, "SampleFormat", SampleFormat),
     Tag('34665', [TIFFType.UnsignedLong, TIFFType.IFD], [1], None, "ExifIFD"),