首页 > WEB优化 > jpegoptim JPG图像无损有损压缩

jpegoptim JPG图像无损有损压缩

2010年12月8日 发表评论 阅读评论

Jpegoptim是一个google建议的很好的JPG,JPEG图像压缩工具,目前支持系统有Linux,Solaris,Darwin/OSX

软件安装需求:

Independent JPEG Group’s jpeg library version 6a or later

安装方法:

下载附件jpegoptim-1.2.3.tar.gz,当然官方地址:http://freshmeat.net/projects/jpegoptim/

zcat jpegoptim-1.2.3.tar.gz | tar xf –
cd jpegoptim-1.2.3
./configure
make
make strip
make install

我的ubuntu系统在./configure后提示:Cannot find libjpeg or you have too old version (v6 or later required).

于是在新立得里找到libjpeg8相关软件全部安装了,再进行下面的步骤,就安装成功了。

使用说明:

jpegoptim --help

jpegoptim v1.2.3  Copyright (c) Timo Kokkonen, 1996-2009.
Usage: jpegoptim [options] <filenames>

-d<path>, –dest=<path>
specify alternative destination directory for
optimized files (default is to overwrite originals)
-f, –force     force optimization
-h, –help      display this help and exit
-m[0..100], –max=[0..100]
set maximum image quality factor (disables lossless
optimization mode, which is by default on)
-n, –noaction  don’t really optimize files, just print results
-o, –overwrite overwrite target file even if it exists
-p, –preserve  preserve file timestamps
-q, –quiet     quiet mode
-t, –totals    print totals after processing all files
-v, –verbose   enable verbose mode (positively chatty)
-V, –version   print program version

–strip-all     strip all (Comment & Exif) markers from output file
–strip-com     strip Comment markers from output file
–strip-exif    strip Exif markers from output file
–strip-iptc    strip IPTC markers from output file
–strip-icc     strip ICC profile markers from output file

jpegoptim -d/home/eagle/桌面/banner -o /home/eagle/桌面/index.jpg 

/home/eagle/桌面/index.jpg 1400×1093 24bit Adobe JFIF  [OK] 336628 –> 336478 bytes (0.04%), optimized.

jpegoptim-1.2.3.tar.gz

分类: WEB优化 标签: ,
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.