textureImage

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
marc_gfx

textureImage

Post by marc_gfx »

I assume Imagick::textureImage is to create a repetetive texture. I just have not been able to find out how to use it.

My goal is to fill an area with my specified texture and them overlay an image with transparency (png). My current test setup looks like this:

$bim = new Imagick('b.png');//background
$tim = new Imagick('t.png');//texture
$oim = new Imagick('o.png');//overlay

$color->setColor("rgb(0,255,0)");
$bim->borderImage($color,10,10);
$bim->textureImage( $tim );
$bim->compositeImage( $oim,Imagick::COMPOSITE_OVER,0,0);

The result is an image with green border and background, with my background image and then my composite image on top. no texture.
marc_gfx

Re: textureImage

Post by marc_gfx »

damn... I have been trying to solve this problem for about 2 hours. now I post it here, I think I've found a solution:

http://valokuva.org/?p=102
Post Reply