note 41160 deleted from function.imagecreatetruecolor by betz

From: Date: Thu, 14 Jul 2005 06:05:59 +0000
Subject: note 41160 deleted from function.imagecreatetruecolor by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-91934@lists.php.net to get a copy of this message
Note Submitter: unigram at byair dot net ---- 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 ()

« previous php.notes (#91934) next »