ID:               29878
 Updated by:       [EMAIL PROTECTED]
 Reported By:      cyleriggs at kc dot rr dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         GD related
 Operating System: Linux 2.6.8.1
 PHP Version:      5.0.1
-Assigned To:      
+Assigned To:      pajoye
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Your jpeg file is not valid. PHP could not take care of each possible
failures in image files. Desktop softwares could. Fix your image and
replace it.

--Pierre



Previous Comments:
------------------------------------------------------------------------

[2004-08-28 23:00:25] cyleriggs at kc dot rr dot com

Description:
------------
When calling ImageCreateFromJPEG() on a valid jpeg file it fails and i
get errors such as the following in my php error log:

<code>
[28-Aug-2004 05:21:29] PHP Warning:  imagecreatefromjpeg() [<a
href='function.imagecreatefromjpeg'>function.imagecreatefromjpeg</a>]:
'/usr/local/apache2/htdocs/pictures/Before Dad Went to
Iraq/IMGP0008.JPG' is not a valid JPEG file in
/home/www/pictures/index.php on line 43
</code>

however as can be seen through this link the file is a valid jpeg
file:

http://cyle.dyndns.org/pictures/Before Dad Went to Iraq/IMGP0008.JPG

Also i have a memory_limit of 25mb so this cannot be the issue.

Something that might help:
http://cyle.dyndns.org/phpinfo.php

I am writing this code for a picture gallery browser, while most
pictures load, about 10% of my pictures cannot be opened through
ImageCreateFromJpeg(), however it is always the same pictures that
cannot be opened. The only trend i can see is that this does not appear
to be happening on small jpegs.

The page that I am having problems with is
http://cyle.dyndns.org/pictures/index.php.  The source code for this is
at http://cyle.dyndns.org/pictures/index.phps.

Expected result:
----------------
The image would be loaded and code continue to execute and i get the
error message described above.

Actual result:
--------------
Sometimes images load sometimes images cannot be opened.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29878&edit=1

Reply via email to