Page 1 of 1

change an image color

Posted: 2008-11-14T07:23:28-07:00
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

Re: change an image color

Posted: 2008-11-14T14:01:02-07:00
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?

Re: change an image color

Posted: 2008-11-15T03:29:53-07:00
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

Re: change an image color

Posted: 2008-11-15T15:38:14-07:00
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?

Re: change an image color

Posted: 2008-11-15T18:54:30-07:00
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...

Re: change an image color

Posted: 2008-11-15T22:18:13-07:00
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.