linux下的ImageMagick安装方法。

By SuperTaoer | 六月 14, 2006
Under: 程序 技术 周边
Views:

linux下的ImageMagick安装方法。

首先从网上下载 ImageMagick
官方网址是: http://www.imagemagick.org
从官方不好下载,提供 sourceforge的下载地址: http://imagemagick.sourceforge.net

然后下载下来解压缩,
./configure –prefix=/usr/local/imagemagick –enable-lzw –with-modules && make && make install
基本上这样就可以了。
默认的就支持jpeg,png等图片
你也可以加入–without-xxx来禁止一些选项,具体的就 ./configure –help | grep without吧。

ok编译好了,需要的时间漫长的。
然后就可以测试了。

/usr/local/imagemagick/bin/convert -quality 90 -resize 100×100 /tmp/origine_image.jpg /tmp/small_100_100.jpg

就是说将/tmp目录下的origine_image.jpg图片重新缩放成100×100的大小保存在/tmp目录下文件名为small_100_100.jpg,图片质量为90。

具体更多的,用的时候就知道了,还可以用php把imagemagick编辑成为php的模块 :)

差..好文!! (还没评价)
Loading ... Loading ...

Leave a Message

No Messages

No Messages

RSS feed for comments on this post. TrackBack URI

Leave a Message