GraphicsMagick: RegisterTIFFImage(): Provide a note regarding su...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.422.1684691470.3177.graphicsmagick-commit@lists.sourceforge.net>
changeset 55915417483e in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=55915417483e
summary: RegisterTIFFImage(): Provide a note regarding supported compressions for this libtiff build

diffstat:

 ChangeLog          |   3 +++
 coders/tiff.c      |  42 ++++++++++++++++++++++++++++++++++++++++++
 www/Changelog.html |   2 ++
 3 files changed, 47 insertions(+), 0 deletions(-)

diffs (104 lines):

diff -r 933f11f778b1 -r 55915417483e ChangeLog
--- a/ChangeLog	Sun May 21 11:47:55 2023 -0500
+++ b/ChangeLog	Sun May 21 12:50:53 2023 -0500
@@ -1,5 +1,8 @@
 2023-05-21  Bob Friesenhahn  <[email protected]>
 
+	* coders/tiff.c (RegisterTIFFImage): Provide a note regarding
+	supported compressions for this libtiff build.
+
 	* utilities/tests/gen-tiff-images/genimages: Add support for
 	writing uncompressed ("none"), rle, lzw, zip, zstd, and lzma
 	compressed variants since these compressors do not have peculiar
diff -r 933f11f778b1 -r 55915417483e coders/tiff.c
--- a/coders/tiff.c	Sun May 21 11:47:55 2023 -0500
+++ b/coders/tiff.c	Sun May 21 12:50:53 2023 -0500
@@ -3822,6 +3822,44 @@
   MagickInfo
     *entry;
 
+  static const char
+    TIFFNote[] =
+    "Supported Compressions: "
+#if defined(COMPRESSION_NONE)
+    "None"
+#endif
+#if defined(COMPRESSION_CCITTFAX3)
+    ", Fax/Group3"
+#endif
+#if defined(COMPRESSION_CCITTFAX4)
+    ", Group4"
+#endif
+#if defined(COMPRESSION_JBIG)
+    ", JBIG"
+#endif
+#if defined(COMPRESSION_JPEG)
+    ", JPEG"
+#endif
+#if defined(COMPRESSION_LZW)
+    ", LZW"
+#endif
+#if defined(COMPRESSION_LZMA)
+    ", LZMA"
+#endif
+#if defined(COMPRESSION_PACKBITS)
+    ", RLE"
+#endif
+#if defined(COMPRESSION_ADOBE_DEFLATE)
+    ", ZIP"
+#endif
+#if defined(COMPRESSION_ZSTD)
+    ", ZSTD"
+#endif
+#if defined(COMPRESSION_WEBP)
+    ", WEBP"
+#endif
+    ;
+
   /*
     Initialize thread specific data key.
   */
@@ -3854,6 +3892,7 @@
   entry->encoder=(EncoderHandler) WriteTIFFImage;
   entry->seekable_stream=MagickTrue;
   entry->description=BIGTIFFDescription;
+  entry->note=TIFFNote;
   entry->module="TIFF";
   entry->coder_class=PrimaryCoderClass;
   (void) RegisterMagickInfo(entry);
@@ -3884,6 +3923,7 @@
   entry->encoder=(EncoderHandler) WritePTIFImage;
   entry->seekable_stream=MagickTrue;
   entry->description=PTIFDescription;
+  entry->note=TIFFNote;
   entry->module="TIFF";
   (void) RegisterMagickInfo(entry);
 
@@ -3898,6 +3938,7 @@
   entry->description=TIFFDescription;
   if (*version != '\0')
     entry->version=version;
+  entry->note=TIFFNote;
   entry->stealth=MagickTrue; /* Don't list in '-list format' output */
   entry->module="TIFF";
   entry->coder_class=PrimaryCoderClass;
@@ -3915,6 +3956,7 @@
   entry->description=TIFFDescription;
   if (*version != '\0')
     entry->version=version;
+  entry->note=TIFFNote;
   entry->module="TIFF";
   entry->coder_class=PrimaryCoderClass;
   (void) RegisterMagickInfo(entry);
diff -r 933f11f778b1 -r 55915417483e www/Changelog.html
--- a/www/Changelog.html	Sun May 21 11:47:55 2023 -0500
+++ b/www/Changelog.html	Sun May 21 12:50:53 2023 -0500
@@ -40,6 +40,8 @@
 <p>2023-05-21  Bob Friesenhahn  &lt;<a class="reference external" href="mailto:bfriesen&#37;&#52;&#48;simple&#46;dallas&#46;tx&#46;us">bfriesen<span>&#64;</span>simple<span>&#46;</span>dallas<span>&#46;</span>tx<span>&#46;</span>us</a>&gt;</p>
 <blockquote>
 <ul class="simple">
+<li><p>coders/tiff.c (RegisterTIFFImage): Provide a note regarding
+supported compressions for this libtiff build.</p></li>
 <li><p>utilities/tests/gen-tiff-images/genimages: Add support for
 writing uncompressed (&quot;none&quot;), rle, lzw, zip, zstd, and lzma
 compressed variants since these compressors do not have peculiar
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.