Re: TIFF compression support list
frechefuchs via Graphicsmagick-help <[email protected]> Thu, 28 Sep 2023 18:28:00 +0200
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
Am 28.09.23 um 18:02 schrieb Bob Friesenhahn: > Oops! Try using '#undef LZW_SUPPORT' instead. > > There are many other FOO_SUPPORT options and if you want to prevent > some of those codecs, you might want to undefine those as well. Hm, either I did something stupid or that doesn't work. With the attached patch, the build indicates LZW support, and I am able to create an LZW compressed image. At least tiffdump shows a compression tag 5 and file size is between RLE and Zip compression. What is the expected result of requesting a non-existent compression type? Best, fux $ hg diff coders/tiff.c diff -r d97320e45918 coders/tiff.c --- a/coders/tiff.c Sat Sep 23 16:13:36 2023 -0500 +++ b/coders/tiff.c Thu Sep 28 18:24:01 2023 +0200 @@ -63,6 +63,7 @@ # endif # include "tiff.h" # include "tiffio.h" +# undef LZW_SUPPORT # if !defined(COMPRESSION_ADOBE_DEFLATE) # define COMPRESSION_ADOBE_DEFLATE 8 # endif /* !defined(COMPRESSION_ADOBE_DEFLATE) */