Gamedev Toolbox: ImageMagick

Subscribers:
265,000
Published on ● Video Link: https://www.youtube.com/watch?v=WBvnbLXW3ag



Duration: 10:07
3,605 views
78


Imagemagick is the swiss army knife of image manipulation. Available as a set of command line utilities or as a C library, if you need to do something to an image or a series of images, Imagemagick can probably do it. Completely free, open source and available on pretty much every platform, there is no reason not to have it installed!


The commands used in this video:
Split into tiles
----------------
convert -crop 32x32 RoyalTileset-TileB.png out\tile_%d.png


Turn tiles into a single image
------------------------------
montage *.png -tile 8x -geometry 32x32 out.png

Set spacing using the -geometry tag


Convert formats
---------------
convert *.jpg +adjoin out%d.gif

Or

mogrify -format jpg -- *.png

Mogrify with no out params modifies the value in place. For example
---------------------------
mogrify -resize 200% *.png

mogrify -blur 22 *.png

mogrify -border 2 -bordercolor black *.png







Tags:
Imagemagick
Imagemagic
Gamedev
Gamefromscratch
Review
Tutorial
Image Manipulation
Terminal
Command Line
tiles
tileset
howto
utility