Re: [GD-DEVEL] Premature end of JPEG file
[email protected] (Pierre)
| Newsgroups | php.gd.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Franky, On 10/17/07, Franky Braem <[email protected]> wrote: > > The only possible error I can think about is the mode you use to read > > the file. Do you use the binary mode with fopen? > > > > > Yes that was the problem. I forgot to use "b" when opening the file. Good, I was afraid of a ugly bug :) > >> I can open the Jpg-file with IrfanView without any problem. The image is > >> created with gdImageJpeg. > >> > > > > That's expected, gd creates valid jpeg :) > > > I didn't forgot to add the "b" when writing the file > > Can you add a link to http://www.wxjavascript.net on your binding page? Done and keep the good work! Cheers, --Pierre