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 1:54pm
15620 views, 13370 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 1:54pm
6396 views, 8215 downloads

ds_blcorner.png

230b in size
last modified May 6, 2006 at 1:54pm
9425 views, 9556 downloads

ds_bottom.png

419b in size
last modified May 6, 2006 at 1:54pm
7280 views, 8974 downloads

ds_brcorner.png

288b in size
last modified May 6, 2006 at 1:54pm
6126 views, 9036 downloads

ds_left.png

730b in size
last modified May 6, 2006 at 1:54pm
5800 views, 8808 downloads

ds_right.png

864b in size
last modified May 6, 2006 at 1:54pm
5695 views, 8775 downloads

ds_tlcorner.png

163b in size
last modified May 6, 2006 at 1:54pm
5464 views, 8743 downloads

ds_top.png

224b in size
last modified May 6, 2006 at 1:55pm
5339 views, 8843 downloads

ds_trcorner.png

203b in size
last modified May 6, 2006 at 1:55pm
5999 views, 8651 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 1:55pm
9320 views, 9220 downloads

test.originaldropshadow.php

1.45kb in size
last modified May 6, 2006 at 1:55pm
7191 views, 8226 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 :: 65122 views

© Andrew Collington, 2002-2007.