Public feed #890227

Anonymous

public php v1 · immutable
Raw Edit
·published 2008-02-03 15:57 UTC
rendered paste body
function thumbnailImage($source,$dest,$width,$height) {        $im = new Imagick($source);        $im->setImageFormat( "png" );        $im->thumbnailImage($width-10,$height-10,true);        $im->roundCorners(5,5);        $shadow = $im->clone();        $shadow->setImageBackgroundColor( new ImagickPixel( 'black' ) );        $shadow->shadowImage( 40, 2.3, 5, 5 );        $shadow->compositeImage( $im, Imagick::COMPOSITE_OVER, 0, 0 );        header( "Content-Type: image/png" );        echo $shadow;}