DRC | ab70623 | 2013-01-18 23:42:31 +0000 | [diff] [blame] | 1 | .TH CJPEG 1 "18 January 2013" |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 2 | .SH NAME |
| 3 | cjpeg \- compress an image file to a JPEG file |
| 4 | .SH SYNOPSIS |
| 5 | .B cjpeg |
| 6 | [ |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 7 | .I options |
Thomas G. Lane | 4a6b730 | 1992-03-17 00:00:00 +0000 | [diff] [blame] | 8 | ] |
| 9 | [ |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 10 | .I filename |
| 11 | ] |
| 12 | .LP |
| 13 | .SH DESCRIPTION |
| 14 | .LP |
| 15 | .B cjpeg |
| 16 | compresses the named image file, or the standard input if no file is |
| 17 | named, and produces a JPEG/JFIF file on the standard output. |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 18 | The currently supported input file formats are: PPM (PBMPLUS color |
Thomas G. Lane | 5ead57a | 1998-03-27 00:00:00 +0000 | [diff] [blame] | 19 | format), PGM (PBMPLUS gray-scale format), BMP, Targa, and RLE (Utah Raster |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 20 | Toolkit format). (RLE is supported only if the URT library is available.) |
| 21 | .SH OPTIONS |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 22 | All switch names may be abbreviated; for example, |
| 23 | .B \-grayscale |
| 24 | may be written |
| 25 | .B \-gray |
| 26 | or |
| 27 | .BR \-gr . |
| 28 | Most of the "basic" switches can be abbreviated to as little as one letter. |
| 29 | Upper and lower case are equivalent (thus |
Thomas G. Lane | 5ead57a | 1998-03-27 00:00:00 +0000 | [diff] [blame] | 30 | .B \-BMP |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 31 | is the same as |
Thomas G. Lane | 5ead57a | 1998-03-27 00:00:00 +0000 | [diff] [blame] | 32 | .BR \-bmp ). |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 33 | British spellings are also accepted (e.g., |
| 34 | .BR \-greyscale ), |
| 35 | though for brevity these are not mentioned below. |
| 36 | .PP |
| 37 | The basic switches are: |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 38 | .TP |
Guido Vollbeding | 5996a25 | 2009-06-27 00:00:00 +0000 | [diff] [blame] | 39 | .BI \-quality " N[,...]" |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 40 | Scale quantization tables to adjust image quality. Quality is 0 (worst) to |
| 41 | 100 (best); default is 75. (See below for more info.) |
| 42 | .TP |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 43 | .B \-grayscale |
| 44 | Create monochrome JPEG file from color input. Be sure to use this switch when |
Thomas G. Lane | 5ead57a | 1998-03-27 00:00:00 +0000 | [diff] [blame] | 45 | compressing a grayscale BMP file, because |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 46 | .B cjpeg |
Thomas G. Lane | 5ead57a | 1998-03-27 00:00:00 +0000 | [diff] [blame] | 47 | isn't bright enough to notice whether a BMP file uses only shades of gray. |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 48 | By saying |
| 49 | .BR \-grayscale , |
| 50 | you'll get a smaller JPEG file that takes less time to process. |
| 51 | .TP |
Guido Vollbeding | 5829cb2 | 2012-01-15 00:00:00 +0000 | [diff] [blame] | 52 | .B \-rgb |
| 53 | Create RGB JPEG file. |
| 54 | Using this switch suppresses the conversion from RGB |
| 55 | colorspace input to the default YCbCr JPEG colorspace. |
Guido Vollbeding | 5829cb2 | 2012-01-15 00:00:00 +0000 | [diff] [blame] | 56 | .TP |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 57 | .B \-optimize |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 58 | Perform optimization of entropy encoding parameters. Without this, default |
| 59 | encoding parameters are used. |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 60 | .B \-optimize |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 61 | usually makes the JPEG file a little smaller, but |
| 62 | .B cjpeg |
Thomas G. Lane | 4a6b730 | 1992-03-17 00:00:00 +0000 | [diff] [blame] | 63 | runs somewhat slower and needs much more memory. Image quality and speed of |
| 64 | decompression are unaffected by |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 65 | .BR \-optimize . |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 66 | .TP |
Thomas G. Lane | bc79e06 | 1995-08-02 00:00:00 +0000 | [diff] [blame] | 67 | .B \-progressive |
| 68 | Create progressive JPEG file (see below). |
| 69 | .TP |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 70 | .B \-targa |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 71 | Input file is Targa format. Targa files that contain an "identification" |
| 72 | field will not be automatically recognized by |
| 73 | .BR cjpeg ; |
| 74 | for such files you must specify |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 75 | .B \-targa |
| 76 | to make |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 77 | .B cjpeg |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 78 | treat the input as Targa format. |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 79 | For most Targa files, you won't need this switch. |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 80 | .PP |
| 81 | The |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 82 | .B \-quality |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 83 | switch lets you trade off compressed file size against quality of the |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 84 | reconstructed image: the higher the quality setting, the larger the JPEG file, |
| 85 | and the closer the output image will be to the original input. Normally you |
| 86 | want to use the lowest quality setting (smallest file) that decompresses into |
| 87 | something visually indistinguishable from the original image. For this |
| 88 | purpose the quality setting should be between 50 and 95; the default of 75 is |
| 89 | often about right. If you see defects at |
| 90 | .B \-quality |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 91 | 75, then go up 5 or 10 counts at a time until you are happy with the output |
| 92 | image. (The optimal setting will vary from one image to another.) |
| 93 | .PP |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 94 | .B \-quality |
Thomas G. Lane | bc79e06 | 1995-08-02 00:00:00 +0000 | [diff] [blame] | 95 | 100 will generate a quantization table of all 1's, minimizing loss in the |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 96 | quantization step (but there is still information loss in subsampling, as well |
| 97 | as roundoff error). This setting is mainly of interest for experimental |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 98 | purposes. Quality values above about 95 are |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 99 | .B not |
| 100 | recommended for normal use; the compressed file size goes up dramatically for |
| 101 | hardly any gain in output image quality. |
| 102 | .PP |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 103 | In the other direction, quality values below 50 will produce very small files |
| 104 | of low image quality. Settings around 5 to 10 might be useful in preparing an |
| 105 | index of a large image library, for example. Try |
| 106 | .B \-quality |
| 107 | 2 (or so) for some amusing Cubist effects. (Note: quality |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 108 | values below about 25 generate 2-byte quantization tables, which are |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 109 | considered optional in the JPEG standard. |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 110 | .B cjpeg |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 111 | emits a warning message when you give such a quality value, because some |
Thomas G. Lane | bc79e06 | 1995-08-02 00:00:00 +0000 | [diff] [blame] | 112 | other JPEG programs may be unable to decode the resulting file. Use |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 113 | .B \-baseline |
| 114 | if you need to ensure compatibility at low quality values.) |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 115 | .PP |
DRC | 39ea562 | 2010-10-12 01:55:31 +0000 | [diff] [blame] | 116 | The \fB-quality\fR option has been extended in this version of \fBcjpeg\fR to |
| 117 | support separate quality settings for luminance and chrominance (or, in |
| 118 | general, separate settings for every quantization table slot.) The principle |
| 119 | is the same as chrominance subsampling: since the human eye is more sensitive |
| 120 | to spatial changes in brightness than spatial changes in color, the chrominance |
| 121 | components can be quantized more than the luminance components without |
| 122 | incurring any visible image quality loss. However, unlike subsampling, this |
| 123 | feature reduces data in the frequency domain instead of the spatial domain, |
| 124 | which allows for more fine-grained control. This option is useful in |
| 125 | quality-sensitive applications, for which the artifacts generated by |
| 126 | subsampling may be unacceptable. |
| 127 | .PP |
| 128 | The \fB-quality\fR option accepts a comma-separated list of parameters, which |
DRC | ccd1bfd | 2012-01-31 09:53:46 +0000 | [diff] [blame] | 129 | respectively refer to the quality levels that should be assigned to the |
DRC | 39ea562 | 2010-10-12 01:55:31 +0000 | [diff] [blame] | 130 | quantization table slots. If there are more q-table slots than parameters, |
| 131 | then the last parameter is replicated. Thus, if only one quality parameter is |
| 132 | given, this is used for both luminance and chrominance (slots 0 and 1, |
| 133 | respectively), preserving the legacy behavior of cjpeg v6b and prior. |
| 134 | More (or customized) quantization tables can be set with the \fB-qtables\fR |
| 135 | option and assigned to components with the \fB-qslots\fR option (see the |
| 136 | "wizard" switches below.) |
| 137 | .PP |
| 138 | JPEG files generated with separate luminance and chrominance quality are fully |
| 139 | compliant with standard JPEG decoders. |
| 140 | .PP |
| 141 | .BR CAUTION: |
| 142 | For this setting to be useful, be sure to pass an argument of \fB-sample 1x1\fR |
| 143 | to \fBcjpeg\fR to disable chrominance subsampling. Otherwise, the default |
| 144 | subsampling level (2x2, AKA "4:2:0") will be used. |
Guido Vollbeding | 5996a25 | 2009-06-27 00:00:00 +0000 | [diff] [blame] | 145 | .PP |
| 146 | The |
Thomas G. Lane | bc79e06 | 1995-08-02 00:00:00 +0000 | [diff] [blame] | 147 | .B \-progressive |
| 148 | switch creates a "progressive JPEG" file. In this type of JPEG file, the data |
| 149 | is stored in multiple scans of increasing quality. If the file is being |
| 150 | transmitted over a slow communications link, the decoder can use the first |
| 151 | scan to display a low-quality image very quickly, and can then improve the |
| 152 | display with each subsequent scan. The final image is exactly equivalent to a |
| 153 | standard JPEG file of the same quality setting, and the total file size is |
| 154 | about the same --- often a little smaller. |
Thomas G. Lane | bc79e06 | 1995-08-02 00:00:00 +0000 | [diff] [blame] | 155 | .PP |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 156 | Switches for advanced users: |
| 157 | .TP |
DRC | d657ba6 | 2012-01-27 09:41:20 +0000 | [diff] [blame] | 158 | .B \-arithmetic |
| 159 | Use arithmetic coding. |
| 160 | .B Caution: |
| 161 | arithmetic coded JPEG is not yet widely implemented, so many decoders will be |
| 162 | unable to view an arithmetic coded JPEG file at all. |
| 163 | .TP |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 164 | .B \-dct int |
| 165 | Use integer DCT method (default). |
| 166 | .TP |
| 167 | .B \-dct fast |
| 168 | Use fast integer DCT (less accurate). |
| 169 | .TP |
| 170 | .B \-dct float |
| 171 | Use floating-point DCT method. |
Thomas G. Lane | a8b67c4 | 1995-03-15 00:00:00 +0000 | [diff] [blame] | 172 | The float method is very slightly more accurate than the int method, but is |
| 173 | much slower unless your machine has very fast floating-point hardware. Also |
| 174 | note that results of the floating-point method may vary slightly across |
| 175 | machines, while the integer methods should give the same results everywhere. |
| 176 | The fast integer method is much less accurate than the other two. |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 177 | .TP |
| 178 | .BI \-restart " N" |
| 179 | Emit a JPEG restart marker every N MCU rows, or every N MCU blocks if "B" is |
| 180 | attached to the number. |
| 181 | .B \-restart 0 |
| 182 | (the default) means no restart markers. |
| 183 | .TP |
| 184 | .BI \-smooth " N" |
| 185 | Smooth the input image to eliminate dithering noise. N, ranging from 1 to |
| 186 | 100, indicates the strength of smoothing. 0 (the default) means no smoothing. |
| 187 | .TP |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 188 | .BI \-maxmemory " N" |
| 189 | Set limit for amount of memory to use in processing large images. Value is |
| 190 | in thousands of bytes, or millions of bytes if "M" is attached to the |
| 191 | number. For example, |
| 192 | .B \-max 4m |
| 193 | selects 4000000 bytes. If more space is needed, temporary files will be used. |
| 194 | .TP |
| 195 | .BI \-outfile " name" |
| 196 | Send output image to the named file, not to standard output. |
| 197 | .TP |
DRC | ab70623 | 2013-01-18 23:42:31 +0000 | [diff] [blame] | 198 | .BI \-memdst |
| 199 | Compress to memory instead of a file. This feature was implemented mainly as a |
| 200 | way of testing the in-memory destination manager (jpeg_mem_dest()), but it is |
| 201 | also useful for benchmarking, since it reduces the I/O overhead. |
| 202 | .TP |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 203 | .B \-verbose |
| 204 | Enable debug printout. More |
| 205 | .BR \-v 's |
| 206 | give more output. Also, version information is printed at startup. |
| 207 | .TP |
| 208 | .B \-debug |
| 209 | Same as |
| 210 | .BR \-verbose . |
| 211 | .PP |
| 212 | The |
| 213 | .B \-restart |
| 214 | option inserts extra markers that allow a JPEG decoder to resynchronize after |
| 215 | a transmission error. Without restart markers, any damage to a compressed |
| 216 | file will usually ruin the image from the point of the error to the end of the |
| 217 | image; with restart markers, the damage is usually confined to the portion of |
| 218 | the image up to the next restart marker. Of course, the restart markers |
| 219 | occupy extra space. We recommend |
| 220 | .B \-restart 1 |
| 221 | for images that will be transmitted across unreliable networks such as Usenet. |
| 222 | .PP |
| 223 | The |
| 224 | .B \-smooth |
| 225 | option filters the input to eliminate fine-scale noise. This is often useful |
Thomas G. Lane | 5ead57a | 1998-03-27 00:00:00 +0000 | [diff] [blame] | 226 | when converting dithered images to JPEG: a moderate smoothing factor of 10 to |
| 227 | 50 gets rid of dithering patterns in the input file, resulting in a smaller |
| 228 | JPEG file and a better-looking image. Too large a smoothing factor will |
| 229 | visibly blur the image, however. |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 230 | .PP |
| 231 | Switches for wizards: |
| 232 | .TP |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 233 | .B \-baseline |
Thomas G. Lane | 5ead57a | 1998-03-27 00:00:00 +0000 | [diff] [blame] | 234 | Force baseline-compatible quantization tables to be generated. This clamps |
| 235 | quantization values to 8 bits even at low quality settings. (This switch is |
| 236 | poorly named, since it does not ensure that the output is actually baseline |
| 237 | JPEG. For example, you can use |
| 238 | .B \-baseline |
| 239 | and |
| 240 | .B \-progressive |
| 241 | together.) |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 242 | .TP |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 243 | .BI \-qtables " file" |
Thomas G. Lane | bc79e06 | 1995-08-02 00:00:00 +0000 | [diff] [blame] | 244 | Use the quantization tables given in the specified text file. |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 245 | .TP |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 246 | .BI \-qslots " N[,...]" |
Thomas G. Lane | bc79e06 | 1995-08-02 00:00:00 +0000 | [diff] [blame] | 247 | Select which quantization table to use for each color component. |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 248 | .TP |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 249 | .BI \-sample " HxV[,...]" |
Thomas G. Lane | bc79e06 | 1995-08-02 00:00:00 +0000 | [diff] [blame] | 250 | Set JPEG sampling factors for each color component. |
| 251 | .TP |
| 252 | .BI \-scans " file" |
| 253 | Use the scan script given in the specified text file. |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 254 | .PP |
| 255 | The "wizard" switches are intended for experimentation with JPEG. If you |
Thomas G. Lane | bc79e06 | 1995-08-02 00:00:00 +0000 | [diff] [blame] | 256 | don't know what you are doing, \fBdon't use them\fR. These switches are |
Guido Vollbeding | 5996a25 | 2009-06-27 00:00:00 +0000 | [diff] [blame] | 257 | documented further in the file wizard.txt. |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 258 | .SH EXAMPLES |
| 259 | .LP |
| 260 | This example compresses the PPM file foo.ppm with a quality factor of |
| 261 | 60 and saves the output as foo.jpg: |
| 262 | .IP |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 263 | .B cjpeg \-quality |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 264 | .I 60 foo.ppm |
| 265 | .B > |
| 266 | .I foo.jpg |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 267 | .SH HINTS |
| 268 | Color GIF files are not the ideal input for JPEG; JPEG is really intended for |
| 269 | compressing full-color (24-bit) images. In particular, don't try to convert |
| 270 | cartoons, line drawings, and other images that have only a few distinct |
| 271 | colors. GIF works great on these, JPEG does not. If you want to convert a |
| 272 | GIF to JPEG, you should experiment with |
| 273 | .BR cjpeg 's |
| 274 | .B \-quality |
| 275 | and |
| 276 | .B \-smooth |
| 277 | options to get a satisfactory conversion. |
| 278 | .B \-smooth 10 |
| 279 | or so is often helpful. |
| 280 | .PP |
| 281 | Avoid running an image through a series of JPEG compression/decompression |
| 282 | cycles. Image quality loss will accumulate; after ten or so cycles the image |
| 283 | may be noticeably worse than it was after one cycle. It's best to use a |
| 284 | lossless format while manipulating an image, then convert to JPEG format when |
| 285 | you are ready to file the image away. |
| 286 | .PP |
| 287 | The |
| 288 | .B \-optimize |
| 289 | option to |
| 290 | .B cjpeg |
| 291 | is worth using when you are making a "final" version for posting or archiving. |
| 292 | It's also a win when you are using low quality settings to make very small |
| 293 | JPEG files; the percentage improvement is often a lot more than it is on |
Thomas G. Lane | bc79e06 | 1995-08-02 00:00:00 +0000 | [diff] [blame] | 294 | larger files. (At present, |
| 295 | .B \-optimize |
| 296 | mode is always selected when generating progressive JPEG files.) |
Thomas G. Lane | 88aeed4 | 1992-12-10 00:00:00 +0000 | [diff] [blame] | 297 | .SH ENVIRONMENT |
| 298 | .TP |
| 299 | .B JPEGMEM |
| 300 | If this environment variable is set, its value is the default memory limit. |
| 301 | The value is specified as described for the |
| 302 | .B \-maxmemory |
| 303 | switch. |
| 304 | .B JPEGMEM |
| 305 | overrides the default value specified when the program was compiled, and |
| 306 | itself is overridden by an explicit |
| 307 | .BR \-maxmemory . |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 308 | .SH SEE ALSO |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 309 | .BR djpeg (1), |
Thomas G. Lane | bc79e06 | 1995-08-02 00:00:00 +0000 | [diff] [blame] | 310 | .BR jpegtran (1), |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 311 | .BR rdjpgcom (1), |
| 312 | .BR wrjpgcom (1) |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 313 | .br |
Thomas G. Lane | 4a6b730 | 1992-03-17 00:00:00 +0000 | [diff] [blame] | 314 | .BR ppm (5), |
| 315 | .BR pgm (5) |
| 316 | .br |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 317 | Wallace, Gregory K. "The JPEG Still Picture Compression Standard", |
| 318 | Communications of the ACM, April 1991 (vol. 34, no. 4), pp. 30-44. |
| 319 | .SH AUTHOR |
| 320 | Independent JPEG Group |
DRC | cf763c0 | 2013-01-01 09:51:37 +0000 | [diff] [blame] | 321 | .PP |
| 322 | This file was modified by The libjpeg-turbo Project to include only information |
DRC | ab70623 | 2013-01-18 23:42:31 +0000 | [diff] [blame] | 323 | relevant to libjpeg-turbo, to wordsmith certain sections, and to describe |
| 324 | features not present in libjpeg. |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 325 | .SH BUGS |
DRC | 39ea562 | 2010-10-12 01:55:31 +0000 | [diff] [blame] | 326 | Support for GIF input files was removed in cjpeg v6b due to concerns over |
| 327 | the Unisys LZW patent. Although this patent expired in 2006, cjpeg still |
| 328 | lacks GIF support, for these historical reasons. (Conversion of GIF files to |
| 329 | JPEG is usually a bad idea anyway.) |
Thomas G. Lane | 5ead57a | 1998-03-27 00:00:00 +0000 | [diff] [blame] | 330 | .PP |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 331 | Not all variants of BMP and Targa file formats are supported. |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 332 | .PP |
| 333 | The |
Thomas G. Lane | 36a4ccc | 1994-09-24 00:00:00 +0000 | [diff] [blame] | 334 | .B \-targa |
Thomas G. Lane | bd543f0 | 1991-12-13 00:00:00 +0000 | [diff] [blame] | 335 | switch is not a bug, it's a feature. (It would be a bug if the Targa format |
| 336 | designers had not been clueless.) |