cjpeg [switches] [inputfile]
基本格式:
cjpeg -quality 80 a.bmp>b.jpg
usage: cjpeg [switches] [inputfile]
Switches (names may be abbreviated):
-quality N[,...] Compression quality (0..100; 5-95 is useful range) #生成指定质量的JPEG文件(0-100,5-95有效)
-grayscale Create monochrome JPEG file #生成单色JPEG文件
-rgb Create RGB JPEG file #生成基于RGB的JPEG文件
-optimize Optimize Huffman table (smaller file, but slow compression, ena #优化哈夫曼表使生成的文件更小,但速度更慢(默认启用)
bled by default)
-progressive Create progressive JPEG file (enabled by default) #生成进步的JPEG文件(默认启用)
-baseline Create baseline JPEG file (disable progressive coding) #创建逐行式JPEG文件(默认关闭)
-targa Input file is Targa format (usually not needed) #输入文件格式为Targa(通常不需要)
-revert Revert to standard defaults (instead of mozjpeg defaults) #恢复为默认的标准(而不是MOZ的)
-fastcrush Disable progressive scan optimization #禁用逐行扫描优化
-multidcscan Use multiple DC scans (may be incompatible with some JPEG decod #使用多个DC扫描(可能不兼容某些JPEG解码器)
ers)
-notrellis Disable trellis optimization #禁用网格优化
-tune-psnr Tune trellis optimization for PSNR #基于PSNR调整网格优化
-tune-hvs-psnr Tune trellis optimization for PSNR-HVS (default) #基于PSNR-HVS调整网格优化(默认)
-tune-ssim Tune trellis optimization for SSIM #基于SSIM调整网格优化
-tune-ms-ssim Tune trellis optimization for MS-SSIM #基于MS-SSIM调整网格优化
Switches for advanced users: #高级用户选项
-arithmetic Use arithmetic coding #使用算术编码
-dct int Use integer DCT method (default) #使用整数DCT算法(默认)
-dct fast Use fast integer DCT (less accurate) #使用最快整数DCT算法(不精准)
-dct float Use floating-point DCT method #使用浮点DCT算法
-restart N Set restart interval in rows, or in blocks with B #将重启间隔行
-smooth N Smooth dithered input (N=1..100 is strength) #设定图像的平滑度(1-100)
-maxmemory N Maximum memory to use (in kbytes) #设定最大可利用内存大小(kb)
-outfile name Specify name for output file #指定输出文件名
-memdst Compress to memory instead of file (useful for benchmarking) #压缩到内存中,而不是文件(基准有用)
-verbose or -debug Emit debug output #调试输出
Switches for wizards: #向导选项
-qtables file Use quantization tables given in file #使用文件中给出的量化表
-qslots N[,...] Set component quantization tables #设置组件的量化表
-sample HxV[,...] Set component sampling factors #设置组件抽样因素
-scans file Create multi-scan JPEG per script file #创建多次扫描的JPEG脚本文件