Trouble with tinting/colorizing an image..
Posted: 2009-04-13T17:05:38-07:00
Greetings all!
I have an image I wish to tint/colorize towards a blueish colour, however I cannot seem to produce the desired result by using colorizeImage.
I've also tried with various other functions, for instance tintImage, but nothing seems to work for me..
So I'm hoping a kind soul here might be able to help me in the right direction
The line of code I've used to produce the above result was:
I basically want to be able to do the following command inside php (without exec):
(From http://www.imagemagick.org/Usage/color/#colorize).
I have an image I wish to tint/colorize towards a blueish colour, however I cannot seem to produce the desired result by using colorizeImage.
I've also tried with various other functions, for instance tintImage, but nothing seems to work for me..
So I'm hoping a kind soul here might be able to help me in the right direction
The line of code I've used to produce the above result was:
Code: Select all
$im->colorizeImage('rgb(0,0,255)',1);
Code: Select all
convert test.png -fill blue -colorize 100% colorize_shape.png