Reflection image


<?php
// Create the upside down image, 
// Crop it to 283 wide 80 high 0 offset from top left corner 
exec("convert input.jpg -flip -crop 283x80+0+0 temp.jpg"); 

// Make a gradiant from transparent to black 
// then overlay the gradiant on the image 
exec("convert \( -size 300x200 gradient:none-black \) temp.jpg +swap -gravity south -composite temp1.jpg ");
 
// Join the two images together 
exec("convert input.jpg temp1.jpg -append output.png"); 

// Remove the tempory images 
unlink('temp.jpg'); 
unlink('temp1.jpg');?>

This creates a reflection of the original image using a gradiant.