Page 1 of 1

Charcoal transformation - but how about chalk/pastel?

Posted: 2011-02-17T12:25:17-07:00
by Tagomago
I've wondering if there is a way to imitate chalk pastel with imagemagick. I could imagine a color charcoal transformation coming close, but does the charcoal transformation necessitate turning an image B&W?

In photoshop, there are filters to apply chalk strokes, brush strokes, etc. I don't know how they work, but I'm curious if anyone has seen an IM equivalent.



Also, I just created what I find to be an interesting image from excessive use of charcoal and paint. (charcoal 11, paint 7) The combination of fragmented blocks and bold lines reminds me of Gustav Klimpt and some other modernist work. This I think would look really interesting in color. Image here: http://4.bp.blogspot.com/-h_SkoGcrPTg/T ... arcoal.jpg

Re: Charcoal transformation - but how about chalk/pastel?

Posted: 2011-02-17T12:41:22-07:00
by fmw42
You can apply either a rainbow or lut of your choice of colors to the grayscale image to color it. Or you can also apply a gradient of color using +level-colors.

see
http://www.imagemagick.org/Usage/color_ ... vel-colors
http://www.imagemagick.org/Usage/color_mods/#clut

Re: Charcoal transformation - but how about chalk/pastel?

Posted: 2011-02-17T13:55:53-07:00
by Tagomago
I'm looking over both pages and having a hard time understanding just how I can generate the rainbow/lut and then use it to color the an image.

I followed enough to use the +level-colors operator, but I'm not clear on how to completely re-color an image.

Example: convert charcoal.jpg +level-colors red
does what I expect, turns the image red. But what is put for full color? I didn't come across an example.

Re: Charcoal transformation - but how about chalk/pastel?

Posted: 2011-02-17T14:02:59-07:00
by fmw42
try

convert charcoal.jpg +level-colors black,red result

convert charcoal.jpg +level-colors red,white result

convert charcoal.jpg +level-colors blue,red result

To create a rainbow, see either http://www.imagemagick.org/Usage/canvas ... colorspace or http://www.fmwconcepts.com/imagemagick/ ... hp#rainbow

to apply it

convert charcoal.jpg rainbowimage -clut result

see http://www.imagemagick.org/Usage/color_mods/#clut

Re: Charcoal transformation - but how about chalk/pastel?

Posted: 2011-02-17T14:24:06-07:00
by Tagomago
Thanks, the first three only came out as two colors, which is why I was stuck when I did that method.

But, I got the gradient made and got it applied to the image. I'm sure you know, though, that the result is wacky, just chunks of crude RGB color fitted to the darkness and lightness of the B&W image, not the original color values of the image. Is this the only sort of color replacement there is?

Re: Charcoal transformation - but how about chalk/pastel?

Posted: 2011-02-17T14:46:56-07:00
by fmw42
Most of the methods are some kind of artificial colorization (-colorize, -tint, etc). Perhaps you want to composite your grayscale image with your original in some way. But you really need to explain in more detail what you want and perhaps provide both your input and grayscale images.