note 42645 added to function.imagecreatetruecolor

From: Date: Tue, 25 May 2004 06:46:37 +0000
Subject: note 42645 added to function.imagecreatetruecolor
Groups: php.notes 
Request: Send a blank email to php-notes+get-70050@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+42645 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42645&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42645&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70050) next »