Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I tried this$newimage->colorAllocate($red,$green,$blue);
But there is no change in the colors, so I'm guessing that is not what I am looking for. I'm sure there has to be something out there that will do this though... Thanksmy $newimage = new GD::Image($newW,$newH); $newimage->copyResized($srcimage,0,0,0,0,$newW,$newH,$srcW,$srcH); $newimage->colorAllocate(255,255,255); print $newimage->jpeg;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: converting Jpeg to grayscale
by snadra (Scribe) on Jul 22, 2003 at 13:17 UTC | |
|
Re: converting Jpeg to grayscale
by Joost (Canon) on Jul 22, 2003 at 13:21 UTC | |
by Willard B. Trophy (Hermit) on Jul 22, 2003 at 15:06 UTC | |
|
Re: converting Jpeg to grayscale
by snadra (Scribe) on Jul 22, 2003 at 13:33 UTC | |
by Anonymous Monk on Jul 22, 2003 at 14:30 UTC | |
|
Re: converting Jpeg to grayscale
by zentara (Cardinal) on Jul 22, 2003 at 15:06 UTC |