note 103179 added to function.imagecolortransparent

From: Date: Wed, 30 Mar 2011 10:09:30 +0000
Subject: note 103179 added to function.imagecolortransparent
Groups: php.notes 
Request: Send a blank email to php-notes+get-178337@lists.php.net to get a copy of this message
The code provided above (Example #1 imagecolortransparent() example) does not cater for alpha transparency in PNG images. I've got a working code from akemapa.com/2008/07/10/php-gd-resize-transparent-image-png-gif/ <?php $img_new = @imagecreatetruecolor($new_img_width, $new_img_height); imagealphablending($img_new, false); imagesavealpha($img_new, true); $transparent = imagecolorallocatealpha($img_new, 255, 255, 255, 127); imagefilledrectangle($img_new, 0, 0, $new_img_width, $new_img_height, $transparent); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 41.136.240.108 ---- Manual Page -- http://www.php.net/manual/en/function.imagecolortransparent.php Edit -- https://master.php.net/note/edit/103179 Del: integrated -- https://master.php.net/note/delete/103179/integrated Del: useless -- https://master.php.net/note/delete/103179/useless Del: bad code -- https://master.php.net/note/delete/103179/bad+code Del: spam -- https://master.php.net/note/delete/103179/spam Del: non-english -- https://master.php.net/note/delete/103179/non-english Del: in docs -- https://master.php.net/note/delete/103179/in+docs Del: other reasons-- https://master.php.net/note/delete/103179 Reject -- https://master.php.net/note/reject/103179 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178337) next »