note 40174 added to function.imagecreatefromjpeg

From: Date: Tue, 24 Feb 2004 09:16:30 +0000
Subject: note 40174 added to function.imagecreatefromjpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-65642@lists.php.net to get a copy of this message
ImageCreateFromJPEG() as of GD 2.0.15 (as bundled with PHP 4.3.4) doesn't handle 4-channel (with alpha channel) JPG images well, the function fails and emits message 'Unsupported color conversion request' to stderr. The solution I found for this is to use NetPBM tools - 'jpegtopnm < orig.jpg | pnmtojpeg > new.jpg' creates a JPG image PHP GD library can open just fine. ---- Manual Page -- http://www.php.net/manual/en/function.imagecreatefromjpeg.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40174 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40174&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40174&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65642) next »