ImageMagick转换图片格式
/usr/bin/convert data/manager/tongji/Html/WebData/images/code0/xingfumima0_1000_0.jpg -colorspace cmyk data/manager/tongji/Html/WebData/images/code0/xingfumima0_1000_0_cmyk.jpg for source in `find ./ -name "*.jpg"` ;do echo $source;head=${source%.*};tail=${source##*.};target=$head'_cmyk.'$tail;echo $target; /usr/bin/convert 'data/manager/tongji/Html/WebData/images/code16/'$source -colorspace cmyk 'data/manager/tongji/Html/WebData/images/code16/'$target done;