note 107709 modified in imagick.setbackgroundcolor by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 May 2012 20:16:11 +0000 |
| Subject: | note 107709 modified in imagick.setbackgroundcolor by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187781@lists.php.net to get a copy of this message | ||
Be cautious and set bgcolor BEFORE importing a SVG with transparency!
:-/ <?php $im = new
Imagick(); $im->setBackgroundColor(new
ImagickPixel('transparent')); $im->readImage('carte_Alain2.svg'); $im->setImageFormat("png32"); header('Content-type:
image/png'); echo $im; ?>
--was--
Be cautious and set bgcolor BEFORE importing a SVG with transparency! :-/
<?
$im = new Imagick();
$im->setBackgroundColor(new ImagickPixel('transparent'));
$im->readImage('carte_Alain2.svg');
$im->setImageFormat("png32");
header('Content-type: image/png');
echo $im;
http://php.net/manual/en/imagick.setbackgroundcolor.php