note 92502 added to function.imagick-shadowimage

From: Date: Mon, 27 Jul 2009 17:43:21 +0000
Subject: note 92502 added to function.imagick-shadowimage
Groups: php.notes 
Request: Send a blank email to php-notes+get-158786@lists.php.net to get a copy of this message
/* Read the image into the object */ $im = new Imagick( 'a.jpg' ); $im->setImageFormat("png"); /* Make the image a little smaller, maintain aspect ratio */ $im->thumbnailImage( 200, null ); /* Clone the current object */ $shadow = $im->clone(); /* Set image background color to black (this is the color of the shadow) */ $shadow->setImageBackgroundColor( new ImagickPixel( 'black' ) ); /* Create the shadow */ $shadow->shadowImage( 80, 3, 5, 5 ); /* Imagick::shadowImage only creates the shadow. That is why the original image is composited over it */ $shadow->compositeImage( $im, Imagick::COMPOSITE_OVER, 0, 0 ); /* Display the image */ header( "Content-Type: image/jpeg" ); echo $shadow; ---- Server IP: 209.41.74.194 Probable Submitter: 122.173.1.135 ---- Manual Page -- http://www.php.net/manual/en/function.imagick-shadowimage.php Edit -- https://master.php.net/note/edit/92502 Del: integrated -- https://master.php.net/note/delete/92502/integrated Del: useless -- https://master.php.net/note/delete/92502/useless Del: bad code -- https://master.php.net/note/delete/92502/bad+code Del: spam -- https://master.php.net/note/delete/92502/spam Del: non-english -- https://master.php.net/note/delete/92502/non-english Del: in docs -- https://master.php.net/note/delete/92502/in+docs Del: other reasons-- https://master.php.net/note/delete/92502 Reject -- https://master.php.net/note/reject/92502 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#158786) next »