Re: Imagick question

From: Date: Thu, 05 Nov 2009 20:23:32 +0000
Subject: Re: Imagick question
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-299665@lists.php.net to get a copy of this message
Ashley Sheridan wrote:
Fill the background with white before you create the corners. Well, I tried that, with no luck. This is my actual code:
     $width = 150;
     $height = 150;
     $im = new Imagick('original/' . $filename);
     $im->thumbnailImage($width, $height, true);
     $im->sharpenImage(50, 1);
     $im->setImageBackgroundColor('white');
     $im->roundCorners(5, 5, 7);
     $im->setImageFormat('jpeg');
     $im->writeImage('thumbnail/' . $filename);
     $im->clear();
     $im->destroy();
-- H | It's not a bug - it's an undocumented feature. +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130 IT Director / SysAdmin . 800.441.3873 x130 Photo Craft Imaging . 2901 55th Street http://www.pcraft.com ..... . . . Boulder, CO 80301, U.S.A.

« previous php.general (#299665) next »