note 34090 added to function.imagecreatefromjpeg

From: Date: Wed, 16 Jul 2003 03:41:26 +0000
Subject: note 34090 added to function.imagecreatefromjpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-52164@lists.php.net to get a copy of this message
I'm having trouble with php crashing when imagecreatefromjpeg tried to use certain jpeg images. I guess they're corrupted in some way but still have the jpeg mime type so checking the image type isn't helping. I saw the solution posted above using the system call to jpegtopnm but I'm looking for a cleaner way of checking for this without having to go through that mess. Does anybody know of a way to check if imagecreatefromjpeg will crash php before actually calling it? It will really help me a lot. Thanks in advance. ---- Manual Page -- http://www.php.net/manual/en/function.imagecreatefromjpeg.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34090 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34090&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34090&report=yes

« previous php.notes (#52164) next »