change an image color

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
Floezen

change an image color

Post by Floezen »

Hi,

I'm trying to change an image color with MagickWand. Unfortunately, nobody could help me with this problem in the MagickWand for PHP Forum (viewtopic.php?f=10&t=12388).
But actually the question is not MagickWand specific, but a general ImageMagick question:

I have a picture which I want to colorize with ImageMagick as in Adobe Photoshop with a color angle of 33° and a saturation of 17.

The original picture looks like this:

<Image
Image

The result should look like this:
Image
Image

When I tried to do this with an imagemap th result unfortunately looked like this:
Image
Image

( please see also my topic at viewtopic.php?f=10&t=12388 )

Can anybody tell me what I did wrong or what other function would fit better - and maybe tell me how I would need to writ this?


Thanks allot for your help
Flözen
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: change an image color

Post by fmw42 »

Floezen wrote:Hi,

I'm trying to change an image color with MagickWand. Unfortunately, nobody could help me with this problem in the MagickWand for PHP Forum (viewtopic.php?f=10&t=12388).
But actually the question is not MagickWand specific, but a general ImageMagick question:

I have a picture which I want to colorize with ImageMagick as in Adobe Photoshop with a color angle of 33° and a saturation of 17.

The original picture looks like this:

<Image
Image

The result should look like this:
Image
Image

When I tried to do this with an imagemap th result unfortunately looked like this:
Image
Image

( please see also my topic at viewtopic.php?f=10&t=12388 )

Can anybody tell me what I did wrong or what other function would fit better - and maybe tell me how I would need to writ this?


Thanks allot for your help
Flözen
To my eyes, your two results look the same. What is the difference that you are concerned about?
Floezen

Re: change an image color

Post by Floezen »

There are missing colors. The color spectrum is not large enough...
It looks like a 255 color GIF. But what I need are high quality images.


Image
Image
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: change an image color

Post by fmw42 »

Floezen wrote:There are missing colors. The color spectrum is not large enough...
It looks like a 255 color GIF. But what I need are high quality images.
I have seen some other complaints about the resulting IM Gif format, but don't know if they have been resolved.

Have you tried saving as png rather than gif?
Floezen

Re: change an image color

Post by Floezen »

Oh, it is NOT a gif, it just looks like one!

If it were a gif, i'd know, what to work on...
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: change an image color

Post by fmw42 »

Floezen wrote:Oh, it is NOT a gif, it just looks like one!

If it were a gif, i'd know, what to work on...

OK, if it is a jpg, then possibly try a different compression or check your version of libjpg delegate? Or try saving as png. If all else fails, then suggest you report to Bugs forum.
Post Reply