Public feed
#890227
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;}