Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Upload problem with big picture  (Read 4088 times)

0 Members and 1 Guest are viewing this topic.

claude258

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 150
    • Album photos Brière
Upload problem with big picture
« on: May 30, 2009, 11:51:47 pm »

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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload problem with big picture
« Reply #1 on: May 31, 2009, 12:25:48 am »

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.
Logged

claude258

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 150
    • Album photos Brière
Re: Upload problem with big picture
« Reply #2 on: May 31, 2009, 01:43:06 am »

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


Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload problem with big picture
« Reply #3 on: May 31, 2009, 02:14:12 am »

I already told you where you can find the calculation scheme:
Then re-calculate according to http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#ErrorAllowedMemorySize
Logged

claude258

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 150
    • Album photos Brière
Re: Upload problem with big picture
« Reply #4 on: May 31, 2009, 02:27:40 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.



 


 
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload problem with big picture
« Reply #5 on: May 31, 2009, 12:35:26 pm »

Try http://www.php.net/manual/en/function.memory-get-usage.php and add that to your script to find out.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.