Upload problem with big picture Upload problem with big picture
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Upload problem with big picture

Started by claude258, May 30, 2009, 11:51:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

claude258

I am trying since a few days to get http (Coppermine) uploads of pictures bigger than 2MB possible (for members who dont know how to resize pictures before upload).

I asked me hosting company to make it possible. Hosting manager says he made this php setting:
memory_limit = 32M
upload_max_filesize = 32M

But it is not working. If I try to upload a picture of about 2.5MB (3600 X 2700) I get to a blank page. It is OK with pictures of about 1.5 MB (2200 X 1700).

Hosting company are looking at the problem. But you may be better for that.

Link to my gallery: www.claudebriere.net
Debug mode enable.
Config setting: max upload: 4MB, Max pixel: 4000.
Upload enable for visitors.

I have read the doc but I dont know the problem.

Thanks for your help.

Joachim Müller

Upgrade first, you're running cpg1.4.18. Then re-calculate according to http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#ErrorAllowedMemorySize :
3600 x 2700 x 3 / 1048576 = 28 MB. Add the memory consumption for the script itself, the variables and arrays and you're easily over your current limit.

claude258

Ok thanks! I think high resolution pictures are not allowed then.

Can we do a back-calculation? If I have the following php settings on the server, what do you suggest as max file size and max resolution in Coppermine config?
memory_limit = 32M
upload_max_filesize = 32M



Joachim Müller


claude258

Quote from: Joachim Müller on May 31, 2009, 12:25:48 AM
Then re-calculate according to http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#ErrorAllowedMemorySize :
3600 x 2700 x 3 / 1048576 = 28 MB. Add the memory consumption for the script itself, the variables and arrays and you're easily over your current limit.

If I do the calculation - 3600 x 2700 x 3 / 1048576 = 28 MB
then my php memory_limit = 32M should be enough but as you said we need to add the memory consumption for the script itself, the variables and arrays. How much do I need to add? How can I estimate that? This is unknown for me.







Joachim Müller