Re: [PHP] function imagecreatefromjpeg()

2004-05-12 Thread Petr U.
On Wed, 12 May 2004 12:08:29 +0200
"PHP" <[EMAIL PROTECTED]> wrote:

 > Is there a solution to fix these files, since they are not really corrupt ?

I don't know :)

-- 
Petr U.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] function imagecreatefromjpeg()

2004-05-12 Thread PHP
I checked to open it with Fireworks and I got an error, but other programs
like MS Internet Explorer can open it perfectly.

The files on which PHP gives an error are the same as the ones that
Fireworks can't open and vice versa.

Is there a solution to fix these files, since they are not really corrupt ?

Thanks a lot,
Dominique

"Petr U." <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> On Wed, 12 May 2004 10:48:24 +0200
> "PHP" <[EMAIL PROTECTED]> wrote:
>
>  > [11-May-2004 23:16:15] PHP Warning:  imagecreatefromjpeg() [  >
>
href='http://www.php.net/function.imagecreatefromjpeg'>function.imagecreatef
>
> romjpeg]: '/home/infos/domalle/miweb/pizias/photodir/6.jpg' is not a >
> valid JPEG file in
/home/infos/domalle/miweb/pizias/TestOnResize2/resize.php >
> on line 42
>
> Are you really sure this image is _really_ correct JPEG ? Check it. I
don't
> know anything about JPEG file history (changes in file format), but I
think no
> major changes was there in last time (http://www.ijg.org/files/ latest
> source is from '98) -> we can eliminate old varsion of jpeg library i
think.
> So check if that file is really correct JPEG image..
>
> -- 
> Petr U.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] function imagecreatefromjpeg()

2004-05-12 Thread Petr U.
On Wed, 12 May 2004 10:48:24 +0200
"PHP" <[EMAIL PROTECTED]> wrote:

 > [11-May-2004 23:16:15] PHP Warning:  imagecreatefromjpeg() [
href='http://www.php.net/function.imagecreatefromjpeg'>function.imagecreatef >
romjpeg]: '/home/infos/domalle/miweb/pizias/photodir/6.jpg' is not a >
valid JPEG file in /home/infos/domalle/miweb/pizias/TestOnResize2/resize.php >
on line 42

Are you really sure this image is _really_ correct JPEG ? Check it. I don't
know anything about JPEG file history (changes in file format), but I think no
major changes was there in last time (http://www.ijg.org/files/ latest
source is from '98) -> we can eliminate old varsion of jpeg library i think.
So check if that file is really correct JPEG image..

-- 
Petr U.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] function imagecreatefromjpeg()

2004-05-12 Thread PHP
Hello,

I use the function imagecreatefromjpeg() to create thumbnails of my
pictures.
This is the code I use :



It works for some of my pictures, but with some pictures the result is an
imagefile with filesize zero. When I check the log files then I see that
these lines has occured:

[11-May-2004 23:16:15] PHP Warning:  imagecreatefromjpeg() [function.imagecreatef
romjpeg]: '/home/infos/domalle/miweb/pizias/photodir/6.jpg' is not a
valid JPEG file in /home/infos/domalle/miweb/pizias/TestOnResize2/resize.php
on line 42

[11-May-2004 23:16:15] PHP Warning:  imagesx(): supplied argument is not a
valid Image resource in
/home/infos/domalle/miweb/pizias/TestOnResize2/resize.php on line 43

[11-May-2004 23:16:15] PHP Warning:  imagesy(): supplied argument is not a
valid Image resource in
/home/infos/domalle/miweb/pizias/TestOnResize2/resize.php on line 44

[11-May-2004 23:16:15] PHP Warning:  Division by zero in
/home/infos/domalle/miweb/pizias/TestOnResize2/resize.php on line 45

[11-May-2004 23:16:15] PHP Warning:  imagecopyresized(): supplied argument
is not a valid Image resource in
/home/infos/domalle/miweb/pizias/TestOnResize2/resize.php on line 49

The only difference that I can find between imagefiles with which it works
and the ones where it does not work is the filesize.
An image file with which it works : 60 Kb
An image file with which it doesn't work : 1400 Kb

Could someone please advice me on a solution that works in all cases ?

Thanks in advance,
Dominique

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] function imagecreatefromjpeg pb

2004-04-11 Thread Cosas minovela
about GD, Warning: imagecreatefromjpeg(): '/var/www/html/datos/2004/02/crio25.jpg' is 
not a valid JPEG file. how can i solve it please?

image pass the EOF and BOF test, so this is not the problem :)