andy's php projects
Script and site usage:
All of the scripts on this site are provided free for non-commercial, personal or non-profit use. If you wish to use any of these in a commercial system, please refer to the payment plan.

Support:
Support for each of the scripts is given, free of charge, on the message board. Each script has its own message board which can be accessed by clicking on the 'project forum' link (beneath the description of each project).


Proudly hosted with Dreamhost

Save $20 when signing up for Dreamhost by using the promo code amnuts20


If you find these scripts useful to you, appreciate the free support, or are just an all round nice person, then why not donate a little dosh to encourage me to continue? Every little helps!

Zend Certified Engineer logo


Drop Shadowed Thumbnail Creator

This class allows you to very easily create thumbnails of images, on which you can also apply a drop-shadow effect. You can control the colour of the background so that drop-shadow will fit better onto your page and the size of the thumbnail.

You can resize in an absolute or relative way (to a certain size or by a certain size), both as a pixel number or a percentage.

class.dropshadow.php

The main class file. Version two works considerably differently to version one. To emulate version one, see the 'class.originaldropshadow.php' file below.

17.84kb in size
last modified May 6, 2006 at 9:54pm
14863 views, 12779 downloads

class.originaldropshadow.php

This is an extension of the main class file to emulate version 1.x of the script.

3.6kb in size
last modified May 6, 2006 at 9:54pm
5877 views, 7637 downloads

ds_blcorner.png

230b in size
last modified May 6, 2006 at 9:54pm
8846 views, 9005 downloads

ds_bottom.png

419b in size
last modified May 6, 2006 at 9:54pm
6764 views, 8392 downloads

ds_brcorner.png

288b in size
last modified May 6, 2006 at 9:54pm
5558 views, 8470 downloads

ds_left.png

730b in size
last modified May 6, 2006 at 9:54pm
5211 views, 8250 downloads

ds_right.png

864b in size
last modified May 6, 2006 at 9:54pm
5086 views, 8229 downloads

ds_tlcorner.png

163b in size
last modified May 6, 2006 at 9:54pm
4979 views, 8162 downloads

ds_top.png

224b in size
last modified May 6, 2006 at 9:55pm
4846 views, 8252 downloads

ds_trcorner.png

203b in size
last modified May 6, 2006 at 9:55pm
5358 views, 8114 downloads

test.dropshadow.php

<?php

    
require "class.dropshadow.php";

    
$ds = new dropShadow(FALSE);
    
$ds->setShadowPath('./shadows/');
    
$ds->loadImage('./images/test.jpg');
    
$ds->resizeByPercent(500);
    
$ds->applyShadow('CCCCCC');
    
$ds->showShadow('png');

?>
231b in size
last modified May 6, 2006 at 9:55pm
8449 views, 8645 downloads

test.originaldropshadow.php

1.45kb in size
last modified May 6, 2006 at 9:55pm
6475 views, 7667 downloads
list all projects :: this project's forum :: script in action
added Sep 20, 2002 at 5:44pm :: updated May 22, 2003 at 5:19am :: 12 files :: 62854 views

© Andrew Collington, 2002-2007.