Imagick rotate with PNG images
Posted: 2013-09-16T06:59:27-07:00
I'm sure this is an old issue and i have seen this issue may times when googling this issue. However, i am using ImageMagick 6.8.4-6 with Imagick version 1620 on CentOS 6.4 and below is the code i am using to rotate my image however the background will not stay transparent. My Code:
instead of leaving ImagickPixel blank i have also tried "none", "transparent", "#00000000", and "rgba(0, 0, 0, 0.0)"
can anyone offer any suggestions?
Code: Select all
$imagick = new Imagick();
$imagick->readImage('images/Champs-43.png');
$imagick->rotateImage(new ImagickPixel(), 45);
header('Content-Type: image/png');
echo $imagick->getImage();
can anyone offer any suggestions?