1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:47:46 +00:00

LibGfx/TIFF: Read and honor the FillOrder tag

This commit is contained in:
Lucas CHOLLET 2024-01-17 23:34:38 -05:00 committed by Jelle Raaijmakers
parent 6a0fe08604
commit 720187623b
2 changed files with 27 additions and 2 deletions

View file

@ -73,6 +73,11 @@ class PhotometricInterpretation(EnumWithExportName):
CIELab = 8
class FillOrder(EnumWithExportName):
LeftToRight = 1
RightToLeft = 2
class Orientation(EnumWithExportName):
Default = 1
FlipHorizontally = 2
@ -124,6 +129,7 @@ known_tags: List[Tag] = [
Tag('259', [TIFFType.UnsignedShort], [1], None, "Compression", Compression, is_required=True),
Tag('262', [TIFFType.UnsignedShort], [1], None, "PhotometricInterpretation",
PhotometricInterpretation, is_required=True),
Tag('266', [TIFFType.UnsignedShort], [1], FillOrder.LeftToRight, "FillOrder", FillOrder),
Tag('271', [TIFFType.ASCII], [], None, "Make"),
Tag('272', [TIFFType.ASCII], [], None, "Model"),
Tag('273', [TIFFType.UnsignedShort, TIFFType.UnsignedLong], [], None, "StripOffsets", is_required=True),