note 41160 added to function.imagecreatetruecolor

From: Date: Thu, 01 Apr 2004 09:36:27 +0000
Subject: note 41160 added to function.imagecreatetruecolor
Groups: php.notes 
Request: Send a blank email to php-notes+get-67452@lists.php.net to get a copy of this message
If your hosting system does not have imagecreatetruecolor() because of PHP<4.2 and GD<2.0 then a get around is <? $thumb = imagecreate ($width, $height); imageJPEG($thumb,"images/temp.jpg"); $thumb = @imagecreatefromjpeg("images/temp.jpg"); ?> which creates a thumbnail of right size, saves as a jpeg and then reads it, in true color. This corrected the degradation caused by using palette images as destination for imagecopyresized () ---- Manual Page -- http://www.php.net/manual/en/function.imagecreatetruecolor.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41160 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41160&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41160&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67452) next »