How to concatenate icons into a single image with ImageMagick?

做~自己de王妃 提交于 2019-11-29 20:53:54
davr

From the page you linked, 'montage' is the tool you want. It'll take a bunch of images and concatenate/tile them into a single output. Here's an example image I've made before using the tool:


(source: davr.org)

Simon Ernst

convert works much better than montage. It arranges images vertically or horizontally and keeps png transparency.

convert *.png -append sprites.png (append vertically)
convert *.png +append sprites.png (append horizontally)

You are looking for:

montage -background transparent -geometry +4+4 *.png sprite.gif
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!