note 78751 added to function.imagerotate

From: Date: Thu, 25 Oct 2007 20:36:53 +0000
Subject: note 78751 added to function.imagerotate
Groups: php.notes 
Request: Send a blank email to php-notes+get-131736@lists.php.net to get a copy of this message
the solution barbarism at oscillatewildly dot com came up with to use -1 to preserve transparency apparently only works if you have PHP5 settings on your host. (This took me 2 days to figure out. I hope I save someone else that time.) My settings: PHP Version: 5.2.2 GD Version: bundled (2.0.34 compatible) Working in PHP5 Example: <?php $filename = 'picturewithtransparency.png'; $degrees = -90; // tilt it header('Content-type: image/png'); $source = imagecreatefrompng($filename); $rotate = imagerotate($source, $degrees, -1); imagealphablending($rotate, true); imagesavealpha($rotate, true); imagepng($rotate); ?> ---- Server IP: 84.47.204.3 Probable Submitter: 98.192.163.85 ---- Manual Page -- http://www.php.net/manual/en/function.imagerotate.php Edit -- https://master.php.net/note/edit/78751 Del: integrated -- https://master.php.net/note/delete/78751/integrated Del: useless -- https://master.php.net/note/delete/78751/useless Del: bad code -- https://master.php.net/note/delete/78751/bad+code Del: spam -- https://master.php.net/note/delete/78751/spam Del: non-english -- https://master.php.net/note/delete/78751/non-english Del: in docs -- https://master.php.net/note/delete/78751/in+docs Del: other reasons-- https://master.php.net/note/delete/78751 Reject -- https://master.php.net/note/reject/78751 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131736) next »