Re: [PHP] problems with several JPEGs in GD2

2005-03-01 Thread Richard Lynch
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

Re: [PHP] problems with several JPEGs in GD2

2005-03-01 Thread anirudh dutt
On Tue, 1 Mar 2005 10:40:59 +, AdamT <[EMAIL PROTECTED]> wrote: > On Tue, 1 Mar 2005 16:06:56 +0530, anirudh dutt <[EMAIL PROTECTED]> wrote: > > i just opened 4 jpg files...dunno about where the header is...coz i > > didn't find anything common at the begining of the files (so i doesn't > > see

Re: [PHP] problems with several JPEGs in GD2

2005-03-01 Thread AdamT
On Tue, 1 Mar 2005 16:06:56 +0530, anirudh dutt <[EMAIL PROTECTED]> wrote: > i just opened 4 jpg files...dunno about where the header is...coz i > didn't find anything common at the begining of the files (so i doesn't > seem to have a header at the "head"). > Okay - so 'header' was a bad choice of

Re: [PHP] problems with several JPEGs in GD2

2005-03-01 Thread anirudh dutt
i just opened 4 jpg files...dunno about where the header is...coz i didn't find anything common at the begining of the files (so i doesn't seem to have a header at the "head"). i found (only) one jpg which had JFIF as the 7th to 10th bytes. i did notice that the _last 2 bytes_ are FF D9 in *all*

Re: [PHP] problems with several JPEGs in GD2

2005-03-01 Thread AdamT
I've had similar problems to that. 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...) -- AdamT "Justify my text? I'm sorry, but it has no excuse." -- PHP General Mailing List (ht

Re: [PHP] problems with several JPEGs in GD2

2005-02-28 Thread Richard Lynch
Mario Lopez wrote: > I've noticed that there is a group of JPEG files > that cannot be operated with GD2 functions. > > For example, if you try to imagecreatefromjpeg("my.jpg") it > replies: > > Warning: imagecreatefromjpeg(): 'my.jpg' is not a valid JPEG file > in C:\Program Files\Apache Group\Apa