note 30330 deleted from function.imagecreatefromjpeg by nlopess

From: Date: Sat, 10 Jan 2004 19:56:55 +0000
Subject: note 30330 deleted from function.imagecreatefromjpeg by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-63286@lists.php.net to get a copy of this message
Note Submitter: teper@axelero.hu ---- The following code prints out 0 on PHP4.0.6/GD1.6.2+: $img = imagecreatefromjpeg($filename); echo imagecolorstotal($img); imagedestroy($img); On PHP4.1.2/GD1.8.2 it prints out 256. It seems that imagecreatefromjpeg() convert the image to 256 colors on the latter config.

« previous php.notes (#63286) next »