Return-Path: <tiff-bounces@lists.osgeo.org>
Received: from mailgate217.isp.belgacom.be ([195.238.22.49])
          by mailfep006.skynet.be
          (InterMail vM.8.04.03.28.4 201-2389-100-182-103-20180124)
          with ESMTP
          id <20201219214544.IKHK7413.mailfep006.skynet.be@mailgate217.isp.belgacom.be>
          for <chris.lindelaan@skynet.be>; Sat, 19 Dec 2020 22:45:44 +0100
Authentication-Results: mx201.skynet.be; dkim=none (message not signed) header.i=none; spf=None smtp.pra=tiff-bounces@lists.osgeo.org; spf=Pass smtp.mailfrom=tiff-bounces@lists.osgeo.org; spf=Pass smtp.helo=postmaster@lists.osgeo.org
Received-SPF: None (mx201.skynet.be: no sender authenticity
  information available from domain of
  tiff-bounces@lists.osgeo.org) identity=pra;
  client-ip=140.211.15.3; receiver=mx201.skynet.be;
  envelope-from="tiff-bounces@lists.osgeo.org";
  x-sender="tiff-bounces@lists.osgeo.org";
  x-conformance=sidf_compatible
Received-SPF: Pass (mx201.skynet.be: domain of
  tiff-bounces@lists.osgeo.org designates 140.211.15.3 as
  permitted sender) identity=mailfrom; client-ip=140.211.15.3;
  receiver=mx201.skynet.be;
  envelope-from="tiff-bounces@lists.osgeo.org";
  x-sender="tiff-bounces@lists.osgeo.org";
  x-conformance=sidf_compatible; x-record-type="v=spf1";
  x-record-text="v=spf1 mx a:mail.osgeo.org a:lists.osgeo.org
  a:mail.osgeo.osuosl.org a:tracsvn.osgeo.osuosl.org -all"
Received-SPF: Pass (mx201.skynet.be: domain of
  postmaster@lists.osgeo.org designates 140.211.15.3 as
  permitted sender) identity=helo; client-ip=140.211.15.3;
  receiver=mx201.skynet.be;
  envelope-from="tiff-bounces@lists.osgeo.org";
  x-sender="postmaster@lists.osgeo.org";
  x-conformance=sidf_compatible; x-record-type="v=spf1";
  x-record-text="v=spf1 mx a:mail.osgeo.org a:lists.osgeo.org
  a:mail.osgeo.osuosl.org a:tracsvn.osgeo.osuosl.org -all"
X-Ironport-Dmarc-Check-Result: validskip
IronPort-SDR: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aHWlmIhCkMX7G8WwtnDtF4HW+2R7pRaXHfY4B8BpX6dDRgHvZotC9Hivb?=
 =?us-ascii?q?xR1smalK/3L2QK+NbV8M0AQsnMfZvbaDx7aEOvQWOSV1hgL3bjL2zUik1Dne?=
 =?us-ascii?q?vH823P9sF8sZv9npcSDLVWBzlXXrsXDFpoGNsaLdJ5RDQhxPSHjcAGoHC5sR?=
 =?us-ascii?q?/aSd5yupHcSunUBu7gJTHfiqNLLUhto/uwPcEIO4v31lY3IEF9h5jPElHMUM?=
 =?us-ascii?q?plpix6chRyp15C/X84SXc8kRGACEvl8DoYEvi6mQQzgw11bLE29Tvi1FwwI0?=
 =?us-ascii?q?LDuCo6lERi0cWgmz2adyT9abuhRYwDQTShrFA/a9moJmQ9JR33h0FvMy3IAq?=
 =?us-ascii?q?5cn6c1P34+kxfS4NNKCbZVH6hNYRtWwuqYavJu1k5T4iz1wU5c+fCDDoBtmQ?=
 =?us-ascii?q?xsdoSjyhAIkwsxadc0IerXP6VEyR5Xnb+JpSvu0fo+iAZMO1wE+3iMfmgPo0?=
 =?us-ascii?q?MFMf8hPDev5egq7haN035KfGxGDqZ4krdR7ko4ft+44Wf4ybcadRK1NveDNO?=
 =?us-ascii?q?WeoGfNkoiPWFxijhpZxXkAxqB/1IIYS2TRUkkuyLWLEBFQapjGKBpJdIxV73?=
 =?us-ascii?q?feemCJq+qfmMsobbX4LfjhSKq1jIhRgk+gG192TYAN9dgaWJ6330zfa8D9I+?=
 =?us-ascii?q?xcxA=3D=3D?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0E3BQCFc95fhwMP04xiHQEBAQEJARI?=
 =?us-ascii?q?BBQUBQIFPgiMYAVYOWQEeAwc2jUWGWwEBBoUBhmSFLYp4gV0WAQECAQEBAQE?=
 =?us-ascii?q?JGAsKAgQBAQEBhkAfBgEENBMCAwEBAQMCBQEBAQQBAQECAQECAwICAQECEAE?=
 =?us-ascii?q?BAQ4LC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yxkob8wwozQZ?=
 =?us-ascii?q?0jMTbKbDd4w/xJdgK7n6EqKNumU/C0X77KBpQDY54eUUrVlEC7fdb6rZ?=
 =?us-ascii?q?oZ1/2grfyi3Vlek6uS4/cEFLTg6VJm3SATfs4=3D?=
Received: from osgeo6.osgeo.osuosl.org (HELO lists.osgeo.org) ([140.211.15.3])
  by mx201.skynet.be with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 19 Dec 2020 22:45:43 +0100
Received: from osgeo6.osgeo.osuosl.org (localhost [127.0.0.1])
	by lists.osgeo.org (Postfix) with ESMTP id 39BE86145949;
	Sat, 19 Dec 2020 13:45:38 -0800 (PST)
Received: from relay4.ptmail.sapo.pt (relay4.ptmail.sapo.pt [212.55.154.24])
 by lists.osgeo.org (Postfix) with ESMTPS id 8E9436146818
 for <tiff@lists.osgeo.org>; Sat, 19 Dec 2020 13:45:36 -0800 (PST)
Received: (qmail 16367 invoked from network); 19 Dec 2020 21:45:34 -0000
Received: (qmail 2762 invoked from network); 19 Dec 2020 21:45:34 -0000
Received: from unknown (HELO Sepher) (medalist@sapo.pt@[85.245.190.24])
 (envelope-sender <medalist@sapo.pt>)
 by ptmail-mta-auth01 (qmail-ptmail-1.0.0) with ESMTPSA;
 19 Dec 2020 21:45:34 -0000
X-PTMail-RemoteIP: 85.245.190.24
X-PTMail-AllowedSender-Action: 
X-PTMail-Service: default
From: "miguel medalha" <medalist@sapo.pt>
To: "'Bob Friesenhahn'" <bfriesen@simple.dallas.tx.us>
Cc: <tiff@lists.osgeo.org>
References: <!&!AAAAAAAAAAAYAAAAAAAAAGDYSmKIm/dOkx5/FTTl6NSCgAAAEAAAAFZ8m0RwYedIiqbAfSo1BxoBAAAAAA==@sapo.pt>
 <alpine.GSO.2.20.2012191529300.9935@scrappy.simplesystems.org>
In-Reply-To: <alpine.GSO.2.20.2012191529300.9935@scrappy.simplesystems.org>
Date: Sat, 19 Dec 2020 21:45:33 -0000
Message-ID: <!&!AAAAAAAAAAAYAAAAAAAAAGDYSmKIm/dOkx5/FTTl6NSCgAAAEAAAAMwzZy+dyH1AgeIxkYDylkQBAAAAAA==@sapo.pt>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AdbWTk1/i5KmzoSKSGSlKMPQU/pP+AAATM0Q
Content-Language: pt
Subject: Re: [Tiff] tiffcp - Make the display of compression options
 conditional
X-BeenThere: tiff@lists.osgeo.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.osgeo.org>
List-Unsubscribe: <https://lists.osgeo.org/mailman/options/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=unsubscribe>
List-Post: <mailto:tiff@lists.osgeo.org>
List-Help: <mailto:tiff-request@lists.osgeo.org?subject=help>
List-Subscribe: <https://lists.osgeo.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: tiff-bounces@lists.osgeo.org
Sender: "Tiff" <tiff-bounces@lists.osgeo.org>

Here goes an updated proposal, taking into account the options for each
compression method:

------------------------------------------------------------
#if LZW_SUPPORT 1
" -c lzw[:opts]   compress output with Lempel-Ziv & Welch encoding",
"    #            set predictor value",
"    p#           set compression level (preset)",
"    For example, -c lzw:2 to get LZW-encoded data with horizontal
differencing,",
#endif
#if ZIP_SUPPORT 1
" -c zip[:opts]   compress output with deflate encoding",
"    Deflate (ZIP) options:",
"    #            set predictor value",
"    p#           set compression level (preset)",
"    -c zip:3:p9  for Deflate encoding with maximum compression level and
floating",
"                 point predictor.",
#if LIBDEFLATE_SUPPORT
"    s#           set subcodec (0=zlib, 1=libdeflate) (only for
Deflate/ZIP)",
#endif
#endif
#if LZMA_SUPPORT
" -c lzma[:opts]  compress output with LZMA2 encoding",
"    #            set predictor value",
"    p#           set compression level (preset)",
#endif
#if ZSTD_SUPPORT
" -c zstd[:opts]  compress output with ZSTD encoding",
"    #            set predictor value",
"    p#           set compression level (preset)",
#endif
#if WEBP_SUPPORT
" -c webp[:opts]  compress output with WEBP encoding",
"    #            set predictor value",
"    p#           set compression level (preset)",
#endif
#if JPEG_SUPPORT 1
" -c jpeg[:opts]  compress output with JPEG encoding",
"    JPEG options:",
"    #            set compression quality level (0-100, default 75)",
"    r            output color image as RGB rather than YCbCr",
"    For example, -c jpeg:r:50 to get JPEG-encoded RGB data with 50% comp.
quality",
#endif
#if JBIG_SUPPORT 1
" -c jbig         compress output with ISO JBIG encoding",
#endif
#if PACKBITS_SUPPORT 1
" -c packbits     compress output with packbits encoding",
#endif
#if CCITT_SUPPORT 1
" -c g3[:opts]    compress output with CCITT Group 3 encoding",
"    Group 3 options:",
"    1d           use default CCITT Group 3 1D-encoding",
"    2d           use optional CCITT Group 3 2D-encoding",
"    fill         byte-align EOL codes",
"    For example, -c g3:2d:fill to get G3-2D-encoded data with byte-aligned
EOLs",
" -c g4           compress output with CCITT Group 4 encoding",
#endif
#if LOGLUV_SUPPORT 1
" -c sgilog       compress output with SGILOG encoding",
#endif
" -c none         use no compression algorithm on output",

------------------------------------------------------------

This gives a nicely formatted output. What do you think?

For testing, I used the following 'cmake' command line, which enables me to
switch options on/off in order to see how they are reflected on tiffcp's
output:

cmake -DCMAKE_BUILD_TYPE=RELEASE -Djpeg:BOOL=OFF -Dzlib:BOOL=OFF
-Djbig:BOOL=OFF -Dlibdeflate:BOOL=OFF -Dlzma:BOOL=OFF -Dzstd:BOOL=OFF
-Dwebp:BOOL=OFF -Djpeg12:BOOL=OFF -Dpixarlog:BOOL=OFF -Dold-jpeg:BOOL=OFF
-Dlzw:BOOL=OFF -Dpackbits:BOOL=OFF -Dccitt:BOOL=OFF -Dlogluv:BOOL=OFF
-Dthunder:BOOL=OFF -Dnext:BOOL=OFF -S . -B .\cmakebuild && cmake --build
.\cmakebuild --config Release


_______________________________________________
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff
