On Mon, 18 Jan 2010 00:10:32 +0100 Eric Arrigo <[email protected]> wrote:
| Hi, and thank you for those hints :o) | | see -modulate at | > http://www.imagemagick.org/script/command-line-options.php#modulate | > | | I tried modulate first, but I couldn't change the color. I guess that since | the whole image is in gray shades, the rotation of hue has no effect (grays | are on the axis, right?) | | The other ways to do that are to: | > | > use -tint, see | > http://www.imagemagick.org/script/command-line-options.php#tint | > | | Tint actually gave me nice results | | I used a mix between tint and colorize, and I got some nice effect. | Not what I primilary intended, but nice enough :o) | Old thread, but catching up on mail after a long vacation. You can get more success with modulate if you start with a non-grey image. For example if you tint to pure 'red' then a -mdulate hue of '100' does nothing while various other hues can be generated using numbers over the range from 0 to 200 (whcih produce the same hue) However thier is on more aspect that should be looked at. For 'tint' and many other operator like overlay, and other 'lighting' image compositions to work properly, the pure color of the original image should be pure 50% grey! See how these work in... http://www.imagemagick.org/Usage/color/#tint http://www.imagemagick.org/Usage/compose/#shade Getting the -shade operator to generate pure 50% grey colors for flat areas was part of an intense study in IM examples. Under Image Transformations. http://www.imagemagick.org/Usage/transform/#shade and more specifically... Creating Overlay Highlighting http://www.imagemagick.org/Usage/transform/#shade_overlay All the above sections in IM examples to refer to each other so a little study would have found the info. As such the proper way to do things, would be to shade the 'shape' to a perfect grey, tint mid-tones to pure red, and then modulate to the hue and saturation desired (as percentages). Or tint directly to the RGB or HSL color directly. Which method depends on the range of images wanted. Anthony Thyssen ( System Programmer ) <[email protected]> -------------------------------------------------------------------------- Oh they never lie. They dissemble, evade, prevericate, confound, confuse, distract, obsure, subtly mis-represent, and wilfully misunderstand..., but they never lie. Perish The thought. - about Mind Ships of Culture -- Iain M. Banks, "Look to Windward" -------------------------------------------------------------------------- Anthony's Castle http://www.cit.griffith.edu.au/~anthony/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
