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

LibGfx/TIFF: Rename JPEG to OldJPEG and introduce a new JPEG tag

Support for JPEGs embedded in TIFF images was introduced with TIFF 6.0.
However, this implementation had major issues. It was so problematic
that they decided to reimplement it from scratch in 1995, three years
later. The two incarnations are obviously incompatible.

For more details see:
https://www.awaresystems.be/imaging/tiff/specification/TIFFTechNote2.txt
This commit is contained in:
Lucas CHOLLET 2024-01-18 22:44:53 -05:00 committed by Andrew Kaster
parent 1faf9bb44f
commit 12c38035db
2 changed files with 6 additions and 1 deletions

View file

@ -55,7 +55,8 @@ class Compression(EnumWithExportName):
Group3Fax = 3
Group4Fax = 4
LZW = 5
JPEG = 6
OldJPEG = 6
JPEG = 7
AdobeDeflate = 8
PackBits = 32773
PixarDeflate = 32946 # This is the old (and deprecated) code for AdobeDeflate