note 103171 modified in function.imagick-rotateimage by danbrown

From: Date: Tue, 29 Mar 2011 21:17:24 +0000
Subject: note 103171 modified in function.imagick-rotateimage by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178327@lists.php.net to get a copy of this message
You can rotate an jpg image by -13.55° into a transparent png image with : <?php $imagick = new Imagick(); $imagick->readImage('my.jpg'); $imagick->rotateImage(new ImagickPixel('none'), -13.55); $imagick->writeImage('my_rotated.png'); $imagick->clear(); $imagick->destroy(); ?> --was-- You can rotate an jpg image by -13.55° into a transparent png image with : $imagick = new Imagick(); $imagick->readImage('my.jpg'); $imagick->rotateImage(new ImagickPixel('none'), -13.55); $imagick->writeImage('my_rotated.png'); $imagick->clear(); $imagick->destroy(); http://php.net/manual/en/function.imagick-rotateimage.php

« previous php.notes (#178327) next »