Merge icon into sprites by ImageMagick

montage 001*.png -alpha on -background “#ffffff00″ -tile 10x -
geometry 16×16+4+4 ../sprites16.png

Where
001*.png, icons image file
10x, 10 columns for each row (ie, x1 mean 1 row)
16×16+4+4, resize icon to 16×16, and the margin 4 pixel between each other
sprites16.png, the result file

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>