I am trying to replicate the canvas texture style effect on a photo using the Imagick php class as seen here under the heading 'texture':
http://www.imagemagick.org/Usage/photos/
Using the command line it can be achieved like this:
composite texture_fabric.gif pagoda_sm.jpg \
-tile -compose Hardlight photo_texture.jpg
However I am using the 'Imagick' php class for ImageMagick and I can't seem to work out how to tile the texture.
I have tried:
$im = new Imagick("source.jpg")
$img2 = new Imagick("texture.gif");
$im->compositeImage($img2, imagick::COMPOSITE_HARDLIGHT, 0, 0);
But all I end up with is the texture image composited on the the source image in the top left corner.
How can I recreate the effect in the link?