note 33821 added to function.imagecreatefromjpeg

From: Date: Tue, 08 Jul 2003 17:47:21 +0000
Subject: note 33821 added to function.imagecreatefromjpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-51719@lists.php.net to get a copy of this message
Here's the answer for your 256 color only problem!!! use these functions in order then it works fine! $img_src=imagecreatefromjpeg('yoursource.jpg'); $img_dst=imagecreatetruecolor(20,20); imagecopyresampled($img_dst, $img_src, 0, 0, 0, 0, 20, 20, 20, 20); imagejpeg($img_dst, $g_dstfile, 100); imagedestroy($img_dst); Greetz, GTB ---- Manual Page -- http://www.php.net/manual/en/function.imagecreatefromjpeg.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33821 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33821&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33821&report=yes

« previous php.notes (#51719) next »