📄 jpegtran.1
字号:
.TH JPEGTRAN 1 "15 June 1995".SH NAMEjpegtran \- lossless transcoding of JPEG files.SH SYNOPSIS.B jpegtran[.I options][.I filename].LP.SH DESCRIPTION.LP.B jpegtrantranslates JPEG files from one variant of JPEG to another, for examplefrom baseline JPEG to progressive JPEG. The transformation is lossless:no image degradation occurs, which would not be true if you used.B djpegfollowed by.BR cjpeg .However, you cannot alter the image quality, because that would not bea lossless operation..B jpegtranreads the named JPEG/JFIF file, or the standard input if no file isnamed, and produces a JPEG/JFIF file on the standard output..SH OPTIONS.B jpegtranaccepts a subset of the switches recognized by.BR cjpeg .If you specify no switches, you get a plain baseline JPEG output file..PPAll switch names may be abbreviated; for example,.B \-optimizemay be written.B \-optor.BR \-o .Upper and lower case are equivalent.British spellings are also accepted (e.g.,.BR \-optimise ),though for brevity these are not mentioned below..PPThe basic switches are:.TP.B \-optimizePerform optimization of entropy encoding parameters. Without this, defaultencoding parameters are used..B \-optimizeusually makes the JPEG file a little smaller, but at the price of slowercompression. Note that.B \-progressiveimplies.BR \-optimize ..TP.B \-progressiveCreate progressive JPEG file (see below)..PPThe.B \-progressiveswitch creates a "progressive JPEG" file. In this type of JPEG file, the datais stored in multiple scans of increasing quality. If the file is beingtransmitted over a slow communications link, the decoder can use the firstscan to display a low-quality image very quickly, and can then improve thedisplay with each subsequent scan. The final image is exactly equivalent to astandard JPEG file of the same quality setting, and the total file size isabout the same --- often a little smaller..B Caution:progressive JPEG is not yet widely implemented, so many decoders will beunable to view a progressive JPEG file at all..PPSwitches for advanced users:.TP.BI \-restart " N"Emit a JPEG restart marker every N MCU rows, or every N MCU blocks if "B" isattached to the number..B \-restart 0(the default) means no restart markers..TP.BI \-maxmemory " N"Set limit for amount of memory to use in processing large images. Value isin thousands of bytes, or millions of bytes if "M" is attached to thenumber. For example,.B \-max 4mselects 4000000 bytes. If more space is needed, temporary files will be used..TP.BI \-outfile " name"Send output image to the named file, not to standard output..TP.B \-verboseEnable debug printout. More.BR \-v 'sgive more output. Also, version information is printed at startup..TP.B \-debugSame as.BR \-verbose ..PPThe.B \-restartoption inserts extra markers that allow a JPEG decoder to resynchronize aftera transmission error. Without restart markers, any damage to a compressedfile will usually ruin the image from the point of the error to the end of theimage; with restart markers, the damage is usually confined to the portion ofthe image up to the next restart marker. Of course, the restart markersoccupy extra space. We recommend.B \-restart 1for images that will be transmitted across unreliable networks such as Usenet..PPSwitches for wizards:.TP.BI \-scans " file"Use the scan script given in the specified text file..PPThe "wizard" switches are intended for experimentation with JPEG. If youdon't know what you are doing, \fBdon't use them\fR. These switches aredocumented further in the file wizard.doc..SH EXAMPLES.LPThis example converts a baseline JPEG file to progressive form:.IP.B jpegtran \-progressive.I foo.jpg.B >.I fooprog.jpg.SH ENVIRONMENT.TP.B JPEGMEMIf this environment variable is set, its value is the default memory limit.The value is specified as described for the.B \-maxmemoryswitch..B JPEGMEMoverrides the default value specified when the program was compiled, anditself is overridden by an explicit.BR \-maxmemory ..SH SEE ALSO.BR cjpeg (1),.BR djpeg (1),.BR rdjpgcom (1),.BR wrjpgcom (1).brWallace, Gregory K. "The JPEG Still Picture Compression Standard",Communications of the ACM, April 1991 (vol. 34, no. 4), pp. 30-44..SH AUTHORIndependent JPEG Group.SH BUGSArithmetic coding is not supported for legal reasons..PPStill not as fast as we'd like.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -