ImageMagick是一个强大的开源图形处理软件,国内应该很少人用,至今仍在更新,放出全版本下载链接

http://ftp.icm.edu.pl/packages/ImageMagick/binaries/

官网在这里:

http://www.imagemagick.org/script/index.php

支持unix、ios、windows

这里主要说说windows下的

他强大而全面的功能在主页有所介绍

file:///D:/ImageMagick-7.0.1-Q16/index.html

但是强大的不只是功能,它可以通过dos指令来对图片进行处理及批处理,查了一下还可以在代码中引用命令,非常强大

更震惊的是它批处理的速度和稳定性要比PS强得多,能比PS处理多得多的文件,很有速度和效率

后期的HDRI版本还支持high dynamic-range imaging高动态范围图像

主要有以下命令

animate

animate an image sequence on any X server.

compare

mathematically and visually annotate the difference between an image and its reconstruction.

composite

overlap one image over another.

conjure

interpret and execute scripts written in the Magick Scripting Language (MSL).

convert

convert
between image formats as well as resize an image, blur, crop,
despeckle, dither, draw on, flip, join, re-sample, and much more.

display

display an image or image sequence on any X server.

identify

describe the format and characteristics of one or more image files.

import

save
any visible window on an X server and outputs it as an image file. You
can capture a single window, the entire screen, or any rectangular
portion of the screen.

magick

convert
between image formats as well as resize an image, blur, crop,
despeckle, dither, draw on, flip, join, re-sample, and much more.

magick-script

use
this scripting language convert between image formats as well as resize
an image, blur, crop, despeckle, dither, draw on, flip, join,
re-sample, and much more.

mogrify

resize
an image, blur, crop, despeckle, dither, draw on, flip, join,
re-sample, and much more. Mogrify overwrites the original image file,
whereas,convertwrites to a different image file.

montage

create
a composite image by combining several separate images. The images are
tiled on the composite image optionally adorned with a border, frame,
image name, and more.

stream

a
lightweight tool to stream one or more pixel components of the image or
portion of the image to your choice of storage formats. It writes the
pixel components as they are read from the input image a row at a time
making stream desirable when working with large images or when you require raw pixel components.

下完安装之后,测试一下是否装上,打开命令提示符,输入mogrify 或者convert(上面的命令就行)如果滚下来很多英文就说明装上了,报错就换个版本吧,我这的64位win7用不了7以上的。

用它做了个简单的批处理裁切

步骤如下

打开命令提示符cd到你想处理图片的那个文件夹

然后输入mogrify -trim *.png(你的格式)

这里想处理dds文件,但是dds事多,又压缩格式又什么的,这时候就查一下它的参数

mogrify -define dds:compression=none -define dds:cluster-fit=true -trim *.dds

试了一下,这么设置貌似是降质最小的,肉眼看不出区别,但是文件大小要比ps裁切要小,不知道是PS冗余还是IM降质

注意IM对DDS的支持在6.8.9版本之后

这里有color space和对各个图片格式的支持与存储参数

http://www.imagemagick.org/script/formats.php

Window参考:

http://www.imagemagick.org/Usage/windows/

一些命令介绍

http://www.imagemagick.org/script/command-line-options.php#define

别的人的总结

http://www.charry.org/docs/linux/ImageMagick/ImageMagick.html

http://blog.sina.com.cn/s/blog_536c64470101dsm1.html

http://blog.csdn.net/calm_thinker/article/details/50647433

一些范例

http://www.ibm.com/developerworks/library/l-graf/?ca=dnt-428

http://www.ibm.com/developerworks/library/l-graf2/?ca=dgr-lnxw15GraphicsLine

http://www.imagemagick.org/Usage/

--wolf96 2016/8/19

ImageMagick使用小节的更多相关文章

  1. windows7下php5.4成功安装imageMagick,及解决php imagick常见错误问题。(phpinfo中显示不出来是因为:1.imagick软件本身、php本身、php扩展三方版本要一致,2.需要把CORE_RL_*.dll多个文件放到/php/目录下面)

    windows7下   php5.4成功安装imageMagick . (phpinfo中显示不出来是因为:1.软件本身.php本身.php扩展三方版本要一致,2.需要把CORE_RL_*.dll多个 ...

  2. 图片处理GraphicsMagick & ImageMagick

    用Java的ImageIO处理一个大于15M的JPG文件,内存溢出. 于是寻求新的解决方案,用ImageMagicK,发现处理图片速度不令人满意,于是切换至GraphicsMagicK,如下是总结. ...

  3. 使用ImageMagick的convert命令,实现批量rgb转cmyk

    因为业务上的需求,使用脚本批量生成的二维码不能直接去打印店排版印刷,必须转换为cmyk的印刷格式. 首先去http://www.imagemagick.org/下载ImageMagick并安装,这个工 ...

  4. 利用开源程序(ImageMagick+tesseract-ocr)实现图像验证码识别

    --------------------------------------------------低调的分割线-------------------------------------------- ...

  5. ImageMagick Remote Command Execute

    CVE ID: CVE-2016-3714 我挺纠结应该用中文写博客还是应该用英文写博客.英文吧作用挺明显的,可以锻炼自己的英语表达能力,但是可能会阻碍和一些英文不好的朋友交流. It's upset ...

  6. Centos5.8 安装 ImageMagick 6.8.9-3

    下载最新的ImageMagick源码包 ImageMagick-6.8.9-3.x86_64.rpm 直接prm -ivh 安装提示错误 error: Failed dependencies: lib ...

  7. ImageMagick常用指令详解

    Imagemagick常用指令 (ImageMagick--蓝天白云) (ImageMagick官网) (其他比较有价值的IM参考) (图片自动旋转的前端实现方案) convert 转换图像格式和大小 ...

  8. centos6.4下安装php的imagick和imagemagick扩展教程

    imagick在centos6.4的安装方法: .安装ImageMagick 代码如下: wget http://soft.vpser.net/web/imagemagick/ImageMagick- ...

  9. windows7下安装php的imagick和imagemagick扩展教程

    这篇文章主要介绍了windows7下安装php的imagick和imagemagick扩展教程,同样也适应XP操作系统,Win8下就没测试过了,需要的朋友可以参考下 最近的PHP项目中,需要用到切图和 ...

随机推荐

  1. PHP常见算法-面试篇(1)

    1.冒泡排序 思路分析:在要排序的一组数中,对当前还未排好的序列,从前往后对相邻的两个数依次进行比较和调整,让较大的数往下沉,较小的往上冒.即,每当两相邻的数比较后发现它们的排序与排序要求相反时,就将 ...

  2. WPF读书笔记 x名称空间详解(第二天)

    每天看一点,每天进步一点. x名称空间映射的是http://schemas.microsoft.com/winfx/2006/xaml,它包含的类均与解析XAML语言关,亦可称为"XAML名 ...

  3. .Net 平台下的互联网架构新思考

    上一篇<互联网应用架构谈>有很多阅读量,但后来实践中发现基于WCF服务层技术用于实现网站访问的效率是有问题的. 我的本意是以WCF中间层解决商业逻辑,供各个平台调用,然而还是带来诸多的麻烦 ...

  4. Linux和Windows下查看环境变量方法对比

    摘自:Linux和Windows下查看环境变量方法对比 一.查看所有环境变量的名称和值 Linux下:export Windows下:set 二.根据名称查该环境变量的值 Linux下:echo $环 ...

  5. git reflog 和git log :no branch git 提交方式

    git reflog 和git log的区别,外加git cherry-pick的一种用法 git reflog 可以查看所有分支的所有操作记录(包括(包括commit和reset的操作),包括已经被 ...

  6. 一步步学习NHibernate(4)——多对一,一对多,懒加载(1)

    请注明转载地址:http://www.cnblogs.com/arhat 通过上一章的学习,我们学会如何使用NHibernate对数据的简单查询,删除,更新和插入,那么如果说仅仅是这样的话,那么NHi ...

  7. 通过xib文件创建和连接UIView

    使用Xcode写程序,时间长了,对于界面上的元素,很多时候不想手写代码进行构建,但是有些UIView里面的子控件,又不能通过xib直接进行构造,要是总使用UIViewController来结合xib进 ...

  8. POJ 3007 Organize Your Train part II(哈希链地址法)

    http://poj.org/problem?id=3007 题意 :给你一个字符串,让你无论从什么地方分割,把这个字符串分成两部分s1和s2,然后再求出s3和s4,让你进行组合,看能出来多少种不同的 ...

  9. HDU4515+计算日期

    模拟! /* 计算过了D天后的日期 之前D天的日期 */ #include<stdio.h> int judge_year( int year ){ ==&&year%!= ...

  10. MySql从服务器延迟解决方案

    在从服务器上执行show slave status;可以查看到很多同步的参数,我们需要特别注意的参数如下:Master_Log_File:                      SLAVE中的I/ ...