IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
I'm really sorry if this is a stupid mistake on my part but I swear I read about this and tried every combo of commands I could. First off....the command in shell and exec works perfectly....
however attempting it with imagick with various versions of the following code produces a rotated image with the transparency turned black (see before/after images attached).
ABOUT PECL.PHP.NET/IMAGICK-3.0.1
================================
Release Type PECL-style PHP extension (source code)
Name imagick
Channel pecl.php.net
Summary Provides a wrapper to the ImageMagick library.
Description Imagick is a native php extension to create and
modify images using the ImageMagick API.
This extension requires ImageMagick version
6.2.4+ and PHP 5.1.3+.
IMPORTANT: Version 2.x API is not compatible
with earlier versions.
Maintainers Mikko Koppanen <mkoppanen@php.net> (lead)
Scott MacVicar <scottmac@php.net> (lead)
Release Date 2010-11-18 21:16:01
Release Version 3.0.1 (stable)
API Version 3.0.1 (stable)
License PHP License (http://www.php.net/license)
Release Notes - Fixed PECL bug #17244
Required Dependencies PHP version 5.1.3
PEAR installer version 1.4.0 or newer
package.xml version 2.0
Last Modified 2012-06-08 18:48
Previous Installed - None -
You are not running the latest version of Imagick. It is 3.1.x (but has not been upgraded in a while). Not sure where you can get it but try a google search. Or check with your ISP.
It is not something daft like the image was changed in some way when uploading it? Have you tried the image in this thread? Have you tried any other images?
<?php
$image = new Imagick("opossum.jpg");
$image->rotateimage("transparent",30);
# make it a gif for transparency
$image->setimageformat("gif");
header("Content-type: image/gif");
echo $image;
?>