开发者

ImageMagick bash script issue

// Thi开发者_StackOverflows works
convert ${path}${dst} -crop ${crop} ${path}${dst}

// but when changed to this, it fails
convert ${path}${src} -trim ${path}${dst}
convert ${path}${dst} -crop ${crop} ${path}"pdf_"${dst}

What am I doing wrong?


Does changing this:

convert ${path}${dst} -crop ${crop} ${path}"pdf_"${dst}

To this:

convert ${path}${dst} -crop ${crop} "${path}pdf_${dst}"

Help?


Works fine for me.

$ path=./
$ src=test.jpg
$ dst=test2.jpg
$ crop=100x100+10+10
$ convert ${path}${src} -trim ${path}${dst}
$ convert ${path}${dst} -crop ${crop} ${path}pdf_${dst}
$ identify pdf_test2.jpg
pdf_test2.jpg JPEG 100x100 100x100+0+0 DirectClass 8-bit 3.30078kb
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜