Game Development Community

ImageMagicks montage - Killer KEY maker

by Rodney Rindels - Torqued · in Torque Game Builder · 06/23/2006 (5:33 pm) · 2 replies

Need to build a KEY spritesheet, have dozens, hundreds of images?

Tired of hacking in positions in photoshop or some other tool..

Enter ImageMagick's montage tool, part of the command line tools for imagemagick.

install imagemagick, make sure it in your system path
cd to your images where your art resides ..

montage -background #FF00C6 -geometry +1+1 *.png mysprites.png

get a png with all your sprites woot!

now just chop off that messy first line , load your KEY file... weeeee

or if somebody knows how to make the imagebuilder ignore it that would be even better.

montage is very powerful... here's its homepage.

www.imagemagick.org/script/montage.php

#1
06/24/2006 (5:42 pm)
Image magic is excellent for my apps as well.

Taking small 32x32 tiles and combining them into 1 tile

montage wizardanimate*.png -geometry 32x32+0+0 wizard.png

And the reverse, breaking up a large into small

convert tileset.png -crop 32x32 +repage tile%d.png

Awesome toolset
#2
12/05/2006 (3:22 am)
Hi Dennis,

I can't seem to get Image Magic to montage and respect the original alpha channels of my source images. The final output image has no alpha channel.

Have you had any success with this?