Creating a Reflection Effect with phMagick

August 9, 2009 by nuno costa 2 comments

phMagick :: Reflection Effect

$p = new phMagick('source.png','destination.png');
$p->reflection(60,50);

 

Parameters:

size: the size in % of the reflection

transparency: the opacity of the reflection

 

result

original image transformed image

 

2 comments so far Add Your Comment

  1. by William Ngiru on September 30 2009 at 07:54

    This is fantastic. Some hosts do not install the API Extension and this does a much better job.

  2. by MrMagic on December 13 2009 at 00:38

    One parameter that you can add to reflection is distance from main image…

More from francodacosta.com

© francodacosta.com - All rights reserved