Batch convert a range of colors in a file

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Post by dognose »

I would do it in two steps instead, having the shading as a seperate mask.

Then, you'd just change one color in the original image, then apply the mask.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

You can also preserve the highlights and shading by using the mask to
overlay the color as a 'tint' either using -tint OR the 'overlay' Alpha Compositing method.

See Tint...
http://www.cit.gu.edu.au/~anthony/graph ... olor/#tint

and Overlay
http://www.cit.gu.edu.au/~anthony/graph ... e/#overlay

I use both of these to good effect in the Advanced IM Examples page
against a 3D shaded greyscale shapes.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply