note 34090 rejected from function.imagecreatefromjpeg by torben

From: Date: Wed, 16 Jul 2003 03:55:51 +0000
Subject: note 34090 rejected from function.imagecreatefromjpeg by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-52166@lists.php.net to get a copy of this message
Note Submitter: gmiller@topdowndesign.net ---- 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.

« previous php.notes (#52166) next »