Re: imagecreatefromjpeg() warning - i don't get it :(
| From: | Rasmus Lerdorf | Date: | Fri, 15 Sep 2000 13:54:52 +0000 |
| Subject: | Re: imagecreatefromjpeg() warning - i don't get it :( | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16941@lists.php.net to get a copy of this message | ||
Read through the gdImageCreateFromJpegCtx function in gd_jpeg.c in the GD
distribution. There are a whole series of checks that it does all of
which could cause the CreateFrom to fail.
-Rasmus
On Fri, 15 Sep 2000, Julie Meloni wrote:
> With all the appropriate libraries installed (gd/jpeg), and using
> php4.0.2, why would a simple use of imagecreatefromjpeg() function
> produce this error:
>
> Warning: imagecreatefromjpeg: 'test.jpg' is not a valid JPEG file
>
> Or rather, what is considered a "valid JPEG file"? Is an image saved as
> a JPEG from name-your-image-creation-program not _really_ a JPEG for the
> purposes of this function?
>
> Confused. :(
>
> - Julie
>
> +------------------------------------------------+
> | Julie Meloni (jcm@i2ii.com) |
> | Tech. Director, i2i Interactive (www.i2ii.com) |
> | |
> | "PHP Essentials" & "PHP Fast & Easy" |
> | http://www.thickbook.com/ |
> +------------------------------------------------+
>
>
>