TIFF compression support list

frechefuchs via Graphicsmagick-help <[email protected]> Thu, 28 Sep 2023 16:53:36 +0200
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
Hi,

with the newly built binaries, I can see that GM 1.4 seems to indicate
supported TIFF compression formats:

> $ ./rungm.sh ./utilities/gm convert -list formats
>    Format L  Mode  Description
> --------------------------------------------------------------------------------
> [...]
>     TIFF P  rw+  Tagged Image File Format (LIBTIFF, Version 4.1.0)
>             Supported Compressions: None, Fax/Group3, Group4, JBIG, JPEG, LZW, LZMA, RLE, ZIP, ZSTD, WEBP

Yet, the list of compression formats seems to be a static one, since
this is a no-WEBP build.  The same happens when building with, e.g.,
--wihout-lzma etc.  Since the list of supported image formats is not a
static one, but reflects the build's actual capabilities, I wonder if a
static TIFF compression support list is useful.  It may lead to confusion.

Background is, I wonder if GM can be built without (TIFF) LZW
compression support.*  Frankly, I don't really grok the zoo of
mismatching compression format and support library names.

Fast-forwarding, at <URL:http://www.graphicsmagick.org/formats.html>, I
found the following note:

> Also known as "TIF". Requires tiff-v3.5.4.tar.gz or later. Note that 
> since the Unisys LZW patent recently expired, libtiff may still
> require a separate LZW patch in order to support LZW. LZW is included
> in libtiff by default since v3.7.0.
So, LZW compression is provided by libtiff itself.  But can it be
disabled?  Better yet, can LZW compression /write/ support be disabled?

Best,
fux

* PDF/A compliant documents may not use LZW compression.