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.