Re: [PHP] JPEG info needed

2007-01-25 Thread Gerry Danen
I *have* tried, Richard. It is not returning the state of the file. Files that Irfanview recognizes are prograssive, your example code does not. Looking at C code in gd-2.0.33/gd_jpeg.c downloaded from http://www.boutell.com/gd/ there is a comment: /* REMOVED by TBB 2/12/01. This field of the s

Re: [PHP] JPEG info needed

2007-01-25 Thread Richard Lynch
Re-read the docs more carefully. The second arg is optional, and it returns the PRIOR state of the interlaced-ness (or progressive-ness for a JPEG). Standard computer-science function trick to return prior state when altering state, and to simply return state if the second arg is not passed in.

Re: [PHP] JPEG info needed

2007-01-24 Thread Gerry Danen
Richard, imageinterlace() turns the interlace bit on or off. It only returns 1 if you set it to 1 as the second parameter... Thanks Gerry On 1/24/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, January 24, 2007 12:08 am, Gerry Danen wrote: >> One other possibility is to see what happens

Re: [PHP] JPEG info needed

2007-01-24 Thread Richard Lynch
On Wed, January 24, 2007 12:08 am, Gerry Danen wrote: >> One other possibility is to see what happens if you do >> imagefromjpeg() >> on a progressive JPEG -- There amy be functions in GD that will tell >> you if the JPEG is progressive, once you have sucked it into PHP... > > Any idea which ones t

Re: [PHP] JPEG info needed

2007-01-23 Thread Richard Lynch
On Mon, January 22, 2007 9:46 pm, Gerry D wrote: > I need PHP to find out if a jpeg file uses progressive encoding. None > of the standard exif or image functions seem to be able to tell me > that. (please correct me if I'm wrong) I don't know of any function, and the ever-populare http://php.net/

[PHP] JPEG info needed

2007-01-22 Thread Gerry D
I need PHP to find out if a jpeg file uses progressive encoding. None of the standard exif or image functions seem to be able to tell me that. (please correct me if I'm wrong) Can anybody help me? TIA Gerry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php