November 24, 2024, 06:18:42 pm

Author Topic: Using ImageMagick  (Read 3395 times)

0 Members and 1 Guest are viewing this topic.

matt88222

  • Gears of War 3
  • Full Member
  • *
  • Posts: 185
  • Hi I'm Matt
    • View Profile
Using ImageMagick
« on: May 15, 2011, 02:21:20 am »
Requested by toxic:

A short guide on using ImageMagick, an image editing program that works through the command line.
Here I'll show you how to remap images, useful for making sprites with a palette larger than 256 colors.

ImageMagick can be found here: www.imagemagick.org

Download and install ImageMagick from their website.

First make a folder somewhere and put into it the image you wish to remap and an image containing all the colors you wish to use (the color palette)
Then open up the command prompt, and change directory to this folder you created.

Code: [Select]
cd {directory}
The line used to convert the image takes the following format:

Code: [Select]
convert {image to be converted} -remap {image containing colors (color palette)} {new image to be created}
Then in the folder, the new image will be created.

For changing dithering methods other than the default Riemersma method:

Code: [Select]
convert {image to be converted} -dither {method} -remap {image containing colors (color palette)} {new image to be created}
The methods available for dithering are: none, riemersma, and floydsteinberg

I made a video demonstrating all of this if you'd like to see it done:

http://www.youtube.com/watch?v=dtmGlkeImnc

Hope this helps :)