I'm running into a problem where imagecreatefromjpeg fails and gives me
a warning like this:

Warning: imagecreatefromjpeg(): 'albums/userpics/10001/dave_sharath.jpg'
is not a valid JPEG file in
/homepages/32/d91926016/htdocs/photos/include/picmgmt.inc.php on line
202

The file in question is a valid jpeg, I've loaded it without problems in
a number of viewers.

I've checked phpinfo for GD support and its there, version 2.0 or
higher.  PHP version is 4.3.6.  To see phpinfo visit
http://yogadex.org/test.php

The code in question works on images whose file size is below some
threshold but I'm not certain what the threshold is.  That is, it works
on small files, fails on all large files.  The file in my example above
is 815384 bytes.

I'm using Coppermine 1.3.0.  So I didn't write the code myself, but
Coppermine is open source so I'm able to see what's going on.  And like
I said everything works fine when the images are smaller, so I'm
confident the issue is somehow related to image file size. 

Thanks in advance for any help.

-Dave
-- 
  
  [EMAIL PROTECTED]

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

Reply via email to