查看版本 cwebp -version 0.4.2

    查看 imagemagick 所支持的格式
    convert -list configure

    identify -list format

    ImageMagick使用心得
    http://www.charry.org/docs/linux/ImageMagick/ImageMagick.html

    Linux下php+imagemagick的图片处理环境安装(支持webp格式)
    http://my.oschina.net/u/142836/blog/169382

    在Debian 7上编译darktable 1.5及pidgin-lwqq
    http://y234.lamost.org/?p=6523


    软件包: libwebp-dev (0.1.3-2.1ubuntu1)
    http://packages.ubuntu.com/zh-cn/precise/libdevel/libwebp-dev


    使用方法

    https://developers.google.com/speed/webp/docs/cwebp

    libwebp 核心包 两个平台的

    http://downloads.webmproject.org/releases/webp/libwebp-0.4.2-windows-x86.zip
    http://downloads.webmproject.org/releases/webp/libwebp-0.4.2-linux-x86-32.tar.gz

    wget http://downloads.webmproject.org/releases/webp/libwebp-0.4.2-linux-x86-32.tar.gz

    tar -xzvf imagick-3.1.0RC1

    phpize

    ./configure —with-php-config=/usr/local/php/bin/php-config —with-imagick=/usr/local/imagemagick

    make

    make install




    Options:
    -h / -help ………… short help
    -H / -longhelp …….. long help
    -q …………. quality factor (0:small..100:big)
    -alpha_q ……… transparency-compression quality (0..100)
    -preset ……. preset setting, one of:
    default, photo, picture,
    drawing, icon, text
    -preset must come first, as it overwrites other parameters

    -m …………… compression method (0=fast, 6=slowest)
    -segments …….. number of segments to use (1..4)
    -size ………… target size (in bytes)
    -psnr ………. target PSNR (in dB. typically: 42)

    -s ……… input size (width x height) for YUV
    -sns …………. spatial noise shaping (0:off, 100:max)
    -f …………… filter strength (0=off..100)
    -sharpness ……. filter sharpness (0:most .. 7:least sharp)
    -strong ……………. use strong filter instead of simple (default)
    -nostrong ………….. use simple filter instead of strong
    -partition_limit . limit quality to fit the 512k limit on
    the first partition (0=no degradation … 100=full)
    -pass ………… analysis pass number (1..10)
    -crop .. crop picture with the given rectangle
    -resize …….. resize picture (after any cropping)
    -mt ……………….. use multi-threading if available
    -low_memory ………… reduce memory usage (slower encoding)
    -map …………. print map of extra info
    -print_psnr ………… prints averaged PSNR distortion
    -print_ssim ………… prints averaged SSIM distortion
    -print_lsim ………… prints local-similarity distortion
    -d ………. dump the compressed output (PGM file)
    -alpha_method …. transparency-compression method (0..1)
    -alpha_filter . predictive filtering for alpha plane,
    one of: none, fast (default) or best
    -alpha_cleanup ……… clean RGB values in transparent area
    -blend_alpha ….. blend colors against background color
    expressed as RGB values written in
    hexadecimal, e.g. 0xc0e0d0 for red=0xc0
    green=0xe0 and blue=0xd0
    -noalpha …………… discard any transparency information
    -lossless ………….. encode image losslessly
    -hint ……… specify image characteristics hint,
    one of: photo, picture or graph

    -metadata ….. comma separated list of metadata to
    copy from the input to the output if present.
    Valid values: all, none (default), exif, icc, xmp

    -short …………….. condense printed message
    -quiet …………….. don’t print anything
    -version …………… print version number and exit
    -noasm …………….. disable all assembly optimizations
    -v ………………… verbose, e.g. print encoding/decoding times
    -progress ………….. report encoding progress

    安装 apt-get install imagemagick 遇到问题
    convert -version
    convert: error while loading shared libraries: libMagickCore-6.Q16.so.2: cannot open shared object file: No such file or directory

    01、vim /etc/ld.so.conf
    02、添加/usr/local/lib 保存退出
    03、ldconfig /etc/ld.so.cahe

    jpeg src
    http://www.ijg.org/files/