Page 1 of 1

How do I use ImageMagick to create one color pictures?

Posted: 2007-03-23T15:16:36-07:00
by Petty
Hi all,

i would like to create pictures with a few colors in command shell. Actually i am going to build a Website with some personal pictures.But i dont want to put the pictures with full colors. i need one or two colors.
For examp. like my avatar.

Thanks

Re: How do I use ImageMagick to create one color pictures?

Posted: 2007-03-23T19:35:56-07:00
by anthony
See IM Examples, Color Reducion and dithering.
http://www.imagemagick.org/Usage/quantize/

Re: How do I use ImageMagick to create one color pictures?

Posted: 2007-04-09T10:57:47-07:00
by Petty
i coundn't make it
Can u guys give an Example?Please, It so complicated.

Thanks.

Re: How do I use ImageMagick to create one color pictures?

Posted: 2007-04-09T19:43:51-07:00
by anthony
More information would be nice...
What type of image? real world? Cartoon like? Shaded? greyscale?
Do you have an example image? What sort of colors do you want? How many?

what have you tried? Have Tried something like...

Code: Select all

convert image.png   +dither -colors 4 image_4.png
And no color reduction is typically not easy, as you have lots of techniques and options.
The IM examples page refered to however has lots of simple examples.
Try them, or explain exactly what you are wanting more clearly.

Re: How do I use ImageMagick to create one color pictures?

Posted: 2007-04-10T04:39:04-07:00
by Petty
Sorry for my poor English :(
I going to try to describe more deeply.
I have normaly (suitable for a documents) taking photos with digital camera. it has full colors. Now i want to change this photos as same as my avatar.(all colors fade and blue color light dominant)
I did made this photo with photoshop, but i have to many (round 300) photos and i dont want to waste my time doing that each one.

Thanks alot.

Re: How do I use ImageMagick to create one color pictures?

Posted: 2007-04-10T17:19:06-07:00
by anthony
I see. First resize your photo. See IM Examples, Thumbnails
http://www.imagemagick.org/Usage/thumbnails/

Then I would try a number of methods to find a good way to tint it blue. I would like to see what findings are for this, so an example and commands you tryed may be nice. Right it up for IM examples :D
Some methods I can think of off hand include...
  • make image greyscale then
  • use -sepia-tone, then
    • change the color hue using -modulate
    • greyscale and try the previous greyscale tinting options
  • Just try to directly tint the image
Again, write up what you fine, I'll include it into IM Examples, Color Modifications, for others to use.