Re: problems with several JPEGs in GD2

From: Date: Tue, 01 Mar 2005 20:55:17 +0000
Subject: Re: problems with several JPEGs in GD2
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-209744@lists.php.net to get a copy of this message
AdamT wrote: > I usually either open the image with notepad, or some Hex Editor, and > see what the bits are in the file header (eg BM for Bitmap, Gif89a for > GIFs, JFIF for JPEGs...) It actually is called a "header" in most formal graphic specifications I've read... Checking the actual bytes of an image, especially the first few, is always a Good Idea. But having the first few bytes "correct" doesn't guarantee validity, of course. Even the fact that one or more other software packages can work with an image doesn't guarantee validity, really. Though if a LOT of them work with it, it's probably valid. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#209744) next »