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
15204 views, 12964 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
6092 views, 7813 downloads

ds_blcorner.png

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

ds_bottom.png

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

ds_brcorner.png

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

ds_left.png

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

ds_right.png

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

ds_tlcorner.png

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

ds_top.png

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

ds_trcorner.png

203b in size
last modified May 6, 2006 at 9:55pm
5697 views, 8297 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
8929 views, 8830 downloads

test.originaldropshadow.php

1.45kb in size
last modified May 6, 2006 at 9:55pm
6782 views, 7851 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 :: 63831 views

© Andrew Collington, 2002-2007.