diff options
author | dcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2010-10-10 07:21:55 +0000 |
---|---|---|
committer | dcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2010-10-10 07:21:55 +0000 |
commit | 2db36c1c70217d339eb9b1504c11b4466940abf0 (patch) | |
tree | be3940a89ef320c582a5cb45f1320f862d12efcc /trunk/cjpeg.1 | |
parent | b725238afa332f688ae27aa9c597a346958dcd71 (diff) |
Add option for setting luminance & chrominance quality independently (currently only works if using libjpeg v7 or v8 code base)
git-svn-id: https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo@248 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'trunk/cjpeg.1')
-rw-r--r-- | trunk/cjpeg.1 | 40 |
1 files changed, 31 insertions, 9 deletions
diff --git a/trunk/cjpeg.1 b/trunk/cjpeg.1 index d175a96..3aee807 100644 --- a/trunk/cjpeg.1 +++ b/trunk/cjpeg.1 @@ -1,4 +1,4 @@ -.TH CJPEG 1 "20 March 1998" +.TH CJPEG 1 "30 December 2009" .SH NAME cjpeg \- compress an image file to a JPEG file .SH SYNOPSIS @@ -36,7 +36,7 @@ though for brevity these are not mentioned below. .PP The basic switches are: .TP -.BI \-quality " N" +.BI \-quality " N[,...]" Scale quantization tables to adjust image quality. Quality is 0 (worst) to 100 (best); default is 75. (See below for more info.) .TP @@ -109,6 +109,34 @@ other JPEG programs may be unable to decode the resulting file. Use if you need to ensure compatibility at low quality values.) .PP The +.B \-quality +option has been extended in IJG version 7 for support of separate quality +settings for luminance and chrominance (or in general, for every provided +quantization table slot). This feature is useful for high-quality +applications which cannot accept the damage of color data by coarse +subsampling settings. You can now easily reduce the color data amount more +smoothly with finer control without separate subsampling. The resulting file +is fully compliant with standard JPEG decoders. +Note that the +.B \-quality +ratings refer to the quantization table slots, and that the last value is +replicated if there are more q-table slots than parameters. The default +q-table slots are 0 for luminance and 1 for chrominance with default tables as +given in the JPEG standard. This is compatible with the old behaviour in case +that only one parameter is given, which is then used for both luminance and +chrominance (slots 0 and 1). More or custom quantization tables can be set +with +.B \-qtables +and assigned to components with +.B \-qslots +parameter (see the "wizard" switches below). +.B Caution: +You must explicitly add +.BI \-sample " 1x1" +for efficient separate color +quality selection, since the default value used by library is 2x2! +.PP +The .B \-progressive switch creates a "progressive JPEG" file. In this type of JPEG file, the data is stored in multiple scans of increasing quality. If the file is being @@ -117,9 +145,6 @@ scan to display a low-quality image very quickly, and can then improve the display with each subsequent scan. The final image is exactly equivalent to a standard JPEG file of the same quality setting, and the total file size is about the same --- often a little smaller. -.B Caution: -progressive JPEG is not yet widely implemented, so many decoders will be -unable to view a progressive JPEG file at all. .PP Switches for advanced users: .TP @@ -279,8 +304,7 @@ Independent JPEG Group Arithmetic coding is not supported for legal reasons. .PP GIF input files are no longer supported, to avoid the Unisys LZW patent. -Use a Unisys-licensed program if you need to read a GIF file. (Conversion -of GIF files to JPEG is usually a bad idea anyway.) +(Conversion of GIF files to JPEG is usually a bad idea anyway.) .PP Not all variants of BMP and Targa file formats are supported. .PP @@ -288,5 +312,3 @@ The .B \-targa switch is not a bug, it's a feature. (It would be a bug if the Targa format designers had not been clueless.) -.PP -Still not as fast as we'd like. |