2011-01-06

ImageMagick: Convert RGBA to RGB in a sane way

When using ImageMagick to convert an RGBA picture (e.g. an OS X window with shadows) to an RGB JPEG file, you should use the following command:

$ convert input.png -flatten +matte output.jpg

If you don't do that, you will end up with a picture like this:


The right conversion leads to this result instead:

No comments:

Post a Comment