1. 图像反色
convert -negate src.jpg result.jpg
convert src.jpg -colorspace gray result.jpg
3.1 普通裁图
convert src.jpg -crop widthxheight+x+y result.jpg
注意其中的widthxheight中间是小写的字符x
3.2 划分子图
convert src.jpg -crop widthxheight result.jpg
结果将得到若干个尺寸为widthxheight的子图,命名方式为result-0.jpg result-1.jpg,...,result-n.jpg
n的取值和src.jpg的尺寸以及widthxheight的尺寸相关
2. 颜色转换
3. 图像裁剪