The GD Reflection plugin allows you to create those fancy Apple-style reflections for your images… granted it’s not so much an Apple thing anymore as a general Web 2.0 thing, but it’s fun anyway. Here’s a sample:
Usage is pretty easy… you’ve got only one function call:
createReflection($percent, $reflection, $white, $border, $borderColor)
Here’s what all that means:
And, here’s the code that generated the above (taken from the examples folder in the release):
<?php require_once '../ThumbLib.inc.php'; $thumb = PhpThumbFactory::create('test.jpg'); $thumb->adaptiveResize(250, 250)->createReflection(40, 40, 80, true, '#a4a4a4'); $thumb->show(); ?>
It’s that easy!
The only thing this plugin requires is that you use the GD implementation of the library.
Last edited by masterexploder,