GauGau,
First thanks for bearing with my newbie question. It's easy to get to the support forum and search for say "imagecreatefromjpeg" and be shown lots of threads, without ever seeing a sticky thread or being told to read them. That's what I did at first, but now I'm caught up. So back to the topic at hand...
When you say, "One of this settings limits the max resolution your pics can have," are you referring to memory_limit? Using a formula from one of the sticky threads, I believe my image, which is 2272 x 1704 pixels, could require 14M of memory. (Yes its large but I'd like to upload it anyway). So now I want to know how big is my memory_limit - and this gets a little confusing as I'll explain.
If I view phpinfo from within coppermine (
http://yogadex.org/photos/phpinfo.php), I see memory_limit set to 40M. This surprised me because a similar file in my sites root directory (
http://yogadex.org/test.php) shows memory_limit set to 8M. Does coppermine somehow set the limit to 40M???
Also, the sticky thread I mentioned earlier (
http://forum.coppermine-gallery.net/index.php?topic=5843.0) states that you cannot change memory_limit with ini_set(). But php.net seemed to say otherwise so I tried this: near the top of upload.php I added "ini_set('memory_limit', '500M');" and near the bottom I added "phpinfo();" Together these changes allow me to see that memory_limit has a Local Value of 500M and a Master Value of 40M while in upload.php. So I'm a little uncertain what my memory_limit really is, but if I believe the phpinfo() call from upload.php it should be large enough.
Even with these settings, I see the same warning as before:
Warning: imagecreatefromjpeg(): 'albums/userpics/10001/dave_sharath~5.jpg' is not a valid JPEG file in /homepages/32/d91926016/htdocs/photos/include/picmgmt.inc.php on line 202
and the failure message:
The previous file could not be placed.
And again if I look at the file, 'albums/userpics/10001/dave_sharath~5.jpg' it is of the correct size, so it seems to be uploading fine. But when coppermine tries to create a thumbnail the warning is produced and later the failure message.
Do you think memory_limit is the issue or could it be something else?
Thanks as always for any help. I do appreciate it.
-Dave