Re: [GD-DEVEL] Premature end of JPEG file
| From: | Pierre | Date: | Wed, 17 Oct 2007 18:53:12 +0000 |
| Subject: | Re: [GD-DEVEL] Premature end of JPEG file | ||
| References: | 1 2 3 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-271@lists.php.net to get a copy of this message | ||
Hi Franky,
On 10/17/07, Franky Braem <franky.braem@gmail.com> 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