【发布时间】:2014-02-24 09:11:59
【问题描述】:
我正在编写一个脚本:
- 天平
- 农作物
- 添加背景图片
到一系列大约 400 个透明 PNG。我想让这个运行尽可能快。
目前我将它作为两个单独的命令:
convert $input.png -scale $scale% -gravity Center -crop 640x640+0+0 +repage $output.png
composite -gravity center $output.png $background $output.png
有没有办法将其简化为单个命令?我一直在查看 -composite 的文档,但我看不到在 进行其他操作之后添加图像作为背景的方法。
有什么想法吗?谢谢
【问题讨论】:
标签: image imagemagick image-manipulation imagemagick-convert