From 923d9e834f7412feedc5ce8dbbccb8325b27973e Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Fri, 1 Dec 2023 00:04:32 -0500 Subject: [PATCH] LibGfx/TIFF: Add support for the SamplesPerPixel tag --- Userland/Libraries/LibGfx/TIFFGenerator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibGfx/TIFFGenerator.py b/Userland/Libraries/LibGfx/TIFFGenerator.py index 711f7358c91..bf345d897e9 100755 --- a/Userland/Libraries/LibGfx/TIFFGenerator.py +++ b/Userland/Libraries/LibGfx/TIFFGenerator.py @@ -56,6 +56,7 @@ known_tags: List[Tag] = [ Tag('258', [TIFFType.UnsignedShort], [], None, "BitsPerSample"), Tag('259', [TIFFType.UnsignedShort], [1], None, "Compression", Compression), Tag('273', [TIFFType.UnsignedShort, TIFFType.UnsignedLong], [], None, "StripOffsets"), + Tag('277', [TIFFType.UnsignedShort], [1], None, "SamplesPerPixel"), Tag('278', [TIFFType.UnsignedShort, TIFFType.UnsignedLong], [1], None, "RowsPerStrip"), Tag('279', [TIFFType.UnsignedShort, TIFFType.UnsignedLong], [], None, "StripByteCounts"), Tag('317', [TIFFType.UnsignedShort], [1], Predictor.NoPrediction, "Predictor", Predictor),