How do I use ImageMagick to create one color pictures?

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
Petty

How do I use ImageMagick to create one color pictures?

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post by anthony »

See IM Examples, Color Reducion and dithering.
http://www.imagemagick.org/Usage/quantize/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Petty

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

Post by Petty »

i coundn't make it
Can u guys give an Example?Please, It so complicated.

Thanks.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Petty

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

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply