"not a valid JPEG file"
- From: "Stephen Oakes" <soakes1@xxxxxxxxxxxxxxxxx>
- Date: Sun, 10 Apr 2005 09:18:40 GMT
I am trying to upload an image to a server, but I get this warning:
Warning: imagecreatefromjpeg(): 'filename' is not a valid JPEG file
The error occurs when I am trying to create a thumbnail from the image. I
can subsequently display the JPG image itself, but the thumbnail creation
fails. I have tried this with hundreds of other images from the same source
and they work fine.
I have looked around on Google and it seems that others have had this same
problem, but I have not been able to find a solution.
Is this a PHP bug? Is there a workaround? Should I just trap the warning
and tell the user (my users will upload their own images) that the file is
not valid? They will surely question this, because seemingly every other
image displayer has no trouble with it.
--
Stephen Oakes
.
- Follow-Ups:
- Re: "not a valid JPEG file"
- From: Stephen Oakes
- Re: "not a valid JPEG file"
- From: Anonymous
- Re: "not a valid JPEG file"
- Prev by Date: Problem installing php with mysql etc
- Next by Date: Re: what is the speed hit of "SELECT *" with MySql, as opposed to narrower database calls?
- Previous by thread: Problem installing php with mysql etc
- Next by thread: Re: "not a valid JPEG file"
- Index(es):
Relevant Pages
|