diff options
Diffstat (limited to 'tools/tiffcrop.c')
-rw-r--r-- | tools/tiffcrop.c | 85 |
1 files changed, 48 insertions, 37 deletions
diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c index d20b585a..7e53525a 100644 --- a/tools/tiffcrop.c +++ b/tools/tiffcrop.c @@ -648,48 +648,59 @@ static void* limitMalloc(tmsize_t s) static const char* usage_info[] = { "usage: tiffcrop [options] source1 ... sourceN destination", "where options are:", -" -h Print this syntax listing", -" -v Print tiffcrop version identifier and last revision date", +" -h Print this syntax listing", +" -v Print tiffcrop version identifier and last revision date", " ", -" -a Append to output instead of overwriting", -" -d offset Set initial directory offset, counting first image as one, not zero", -" -p contig Pack samples contiguously (e.g. RGBRGB...)", -" -p separate Store samples separately (e.g. RRR...GGG...BBB...)", -" -s Write output in strips", -" -t Write output in tiles", -" -i Ignore read errors", -" -k size set the memory allocation limit in MiB. 0 to disable limit", +" -a Append to output instead of overwriting", +" -d offset Set initial directory offset, counting first image as one, not zero", +" -p contig Pack samples contiguously (e.g. RGBRGB...)", +" -p separate Store samples separately (e.g. RRR...GGG...BBB...)", +" -s Write output in strips", +" -t Write output in tiles", +" -i Ignore read errors", +" -k size set the memory allocation limit in MiB. 0 to disable limit", " ", -" -r # Make each strip have no more than # rows", -" -w # Set output tile width (pixels)", -" -l # Set output tile length (pixels)", +" -r # Make each strip have no more than # rows", +" -w # Set output tile width (pixels)", +" -l # Set output tile length (pixels)", " ", -" -f lsb2msb Force lsb-to-msb FillOrder for output", -" -f msb2lsb Force msb-to-lsb FillOrder for output", +" -f lsb2msb Force lsb-to-msb FillOrder for output", +" -f msb2lsb Force msb-to-lsb FillOrder for output", "", -" -c lzw[:opts] Compress output with Lempel-Ziv & Welch encoding", -" -c zip[:opts] Compress output with deflate encoding", +#ifdef LZW_SUPPORT +" -c lzw[:opts] Compress output with Lempel-Ziv & Welch encoding", +/* " LZW options:", */ +" # Set predictor value", +" For example, -c lzw:2 for LZW-encoded data with horizontal differencing", +#endif +#ifdef ZIP_SUPPORT +" -c zip[:opts] Compress output with deflate encoding", +/* " Deflate (ZIP) options:", */ +" # Set predictor value", +#endif +#ifdef JPEG_SUPPORT " -c jpeg[:opts] Compress output with JPEG encoding", -" -c packbits Compress output with packbits encoding", -" -c g3[:opts] Compress output with CCITT Group 3 encoding", -" -c g4 Compress output with CCITT Group 4 encoding", -" -c none Use no compression algorithm on output", -" ", -"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", -" ", -"JPEG options:", -" # Set compression quality level (0-100, default 100)", -" raw Output color image as raw YCbCr", -" rgb Output color image as RGB", -"For example, -c jpeg:rgb:50 to get JPEG-encoded RGB data with 50% comp. quality", -" ", -"LZW and deflate options:", -" # Set predictor value", -"For example, -c lzw:2 to get LZW-encoded data with horizontal differencing", +/* " JPEG options:", */ +" # Set compression quality level (0-100, default 100)", +" raw Output color image as raw YCbCr (default)", +" rgb Output color image as RGB", +" For example, -c jpeg:rgb:50 for JPEG-encoded RGB with 50% comp. quality", +#endif +#ifdef PACKBITS_SUPPORT +" -c packbits Compress output with packbits encoding", +#endif +#ifdef CCITT_SUPPORT +" -c g3[:opts] Compress output with CCITT Group 3 encoding", +/* " CCITT 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 for G3-2D-encoded data with byte-aligned EOLs", +" -c g4 Compress output with CCITT Group 4 encoding", +#endif +#if defined(LZW_SUPPORT) || defined(ZIP_SUPPORT) || defined(JPEG_SUPPORT) || defined(PACKBITS_SUPPORT) || defined(CCITT_SUPPORT) +" -c none Use no compression algorithm on output", +#endif " ", "Page and selection options:", " -N odd|even|#,#-#,#|last sequences and ranges of images within file to process", |