Colorize an image with transparenz
Posted: 2010-11-03T13:26:41-07:00
Hello,
I'm searching for a way to colourize an image by another colour-layer but the results so far let a bit to be desired.
This is the image which should be recoloured:
This is the colour-layer:
This is the result so far:
Here is my Code:
I've already tried some other composite filters but none shows the desired result. In Photoshop the layermode is called "linear dodge".
I hope somebody can help me with this problem.
I'm searching for a way to colourize an image by another colour-layer but the results so far let a bit to be desired.
This is the image which should be recoloured:
This is the colour-layer:
This is the result so far:
Here is my Code:
Code: Select all
private function colorizeVinyl(){
$colorWand = new Imagick();
$colorWand->newImage(600,600,$this->color,"png");
$this->vinylimage->setImageVirtualPixelMethod(Imagick::VIRTUALPIXELMETHOD_TRANSPARENT);
$this->vinylimage->setImageMatte(true);
$this->vinylimage->compositeImage($colorWand,Imagick::COMPOSITE_ADD,0,0);
echo $this->vinylimage;
}
I hope somebody can help me with this problem.