note 14278 deleted from function.getimagesize by jimw

From: Date: Mon, 10 Dec 2001 23:32:38 +0000
Subject: note 14278 deleted from function.getimagesize by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22474@lists.php.net to get a copy of this message
getImageSize() fails for some JPEGs saved by digital cameras -- it returns NULL instead of an array. The only workaround I've found is to use the identify binary from the ImageMagick distribution, whenever getImageSize() fails. identify returns a string of data such as: "DSC00021.JPG[1] 640x480 DirectClass 88kb JPEG 1s" which can be parsed for size and type data.

« previous php.notes (#22474) next »