coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: tex2 on October 27, 2006, 02:10:33 PM

Title: Large Photo's for printing not uploadable`
Post by: tex2 on October 27, 2006, 02:10:33 PM
Dear Support
I also have the following problem which I dont know how to fix as I spend hours on your forum and manual to try to sort this.
Here is the error:
The size of file you have uploaded is too large (maximum allowed is 2048 x 2048) !

File: /home/newgallery/gallery/db_input.php - Line: 391

My debug code:
USER:
------------------
Array
(
    [ID] => 2334bff03974105b420f8b8a804fee79
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => root
    [groups] => Array
        (
           
Title: Here is the file detail
Post by: tex2 on October 27, 2006, 02:15:56 PM
The image properties is as follow:
Width: 2000pixels
Height: 3008 pixels
Horizontal resolution: 300dpi
Vertical resolution: 300dpi
Bit Depth: 24
File size: 1,262,627 bytes

As you can see its high resolution photographs and I dont know how to overcome this problem.
Title: Re: Large Photo's for printing not uploadable`
Post by: Stramm on October 27, 2006, 02:16:51 PM
do not post debug output unless requested

here's some interesting reading for you (the sticky thread of this board)
http://forum.coppermine-gallery.net/index.php?topic=24088.0
Title: Re: Large Photo's for printing not uploadable`
Post by: Nibbler on October 27, 2006, 02:56:51 PM
You say: 'maximum allowed is 2048 x 2048'

and  'Height: 3008 pixels'

The picture is clearly larger than the limits you have set in config.
Title: Re: Large Photo's for printing not uploadable`
Post by: tex2 on October 27, 2006, 03:25:47 PM
Yes, thats correct. Its very large.
Sorry, I thought that the debug info will help.

What limit should I set then for images as large as this?
I can email you the pic if you want to see it, but like I said, its JPG and 4MB
Title: Re: Large Photo's for printing not uploadable`
Post by: tex2 on October 27, 2006, 04:00:07 PM
ok, I have set the max file size to 3010
Now I get this error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3988 bytes) in /home/newgallery/gallery/include/picmgmt.inc.php on line 272

What now?
Title: Re: Large Photo's for printing not uploadable`
Post by: Stramm on October 27, 2006, 04:05:44 PM
Quote from: Stramm on October 27, 2006, 02:16:51 PM
do not post debug output unless requested

here's some interesting reading for you (the sticky thread of this board)
http://forum.coppermine-gallery.net/index.php?topic=24088.0
Title: Re: Large Photo's for printing not uploadable`
Post by: Joachim Müller on October 29, 2006, 09:50:54 PM
...especially http://forum.coppermine-gallery.net/index.php?topic=24088.msg110690#msg110690
Don't bother to post again without doing as suggested and reading the sticky thread (we mean it!) as well as the documentation (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble).
Title: Re: Large Photo's for printing not uploadable`
Post by: tex2 on October 30, 2006, 12:19:56 PM
Thanks, I got it!  ;D
I had to increase my memory in the php.ini file <--- For those people who is suffering with the same problem.
My memory was set to 32 and at 128 I could upload some images, after increasing even more to 256 - It worked.
Thanks GauGau
you may close the thread ;D