coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: sfear on March 27, 2006, 04:54:35 PM

Title: problem with photos greater than 1MB
Post by: sfear on March 27, 2006, 04:54:35 PM
HI,
I found last week your beautiful sw, but I have problems with the upload of photos greater than 1MB, both in http or in ftp way.

I tryed to change the parameter of thumbnail and files setting:
max files lenghts per file: 3000KB;
max dim for images/videos: 5000;

Furthermore I've applied the procedure suggested in "4.11.4 Upload troubleshooting"
but the problems are in the screen between the selection of the images to upload and the results:

Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 6816 bytes) in /web/htdocs/www.vina3.it/home/sfearsite/coppermine/include/picmgmt.inc.php on line 259

Reading that line code seem impossible to GD to create thumbnail of images greater of 1MB, but I'd like to use high quality images.

Anyway the before result of the debug are:
USER:
------------------
Array
(
    [ID] => 243a393547ca301c4c00b7c1c57b57af
    [am] => 1
    [lang] => italian
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => sfear
    [groups] => Array
        (
           
Title: Re: problem with photos greater than 1MB
Post by: Stramm on March 27, 2006, 05:29:47 PM
means you need to increase the php memory limit. The memory usage doesn't depend on the jpg filesize but on the pic dimensions repective its pixel count
eg gd2 would need min 40 mb for a pic 3504 x 2336 8bits (canon 20d)
Title: Re: problem with photos greater than 1MB
Post by: Joachim Müller on March 27, 2006, 08:39:50 PM
see http://forum.coppermine-gallery.net/index.php?topic=24088.msg110690#msg110690
Title: Re: problem with photos greater than 1MB
Post by: sfear on March 28, 2006, 12:26:24 PM
Ok, thanks but unfortunately I'm not the administrator of the server.

I've used the phpinfo script of coppermine, the value memory limit is:
memory_limit   12M   12M

and because my photos are of 5 MPx they have:
2272 x 1704 = 3871488
3871488 * 3 = 11614464
11614464 / 1048576 = 11,076 MB

so they are below 12 MB. do you think that the script require more than 1MB?
How much the script require so maybe I can try to ask at the webhoster the smallest increasing size

thanks again
Fabrizio
Title: Re: problem with photos greater than 1MB
Post by: Stramm on March 28, 2006, 12:58:53 PM
there's some sort of 'fudge factor' of 1.65 (some programers found it through experimenting)

so you'll need ~ 19+MB

(more about that you can read on php.net)
Title: Re: problem with photos greater than 1MB
Post by: Cha83 on March 28, 2006, 04:13:45 PM
QuoteGauGau
Alternative 3 (workaround):

You may download one of many free programs that resize images. Then resize the images to a smaller resolution (like 800 x 600) by the batch into a different folder while maintaining the same filenames.

Upload the resized images to Coppermine.  Then use your FTP client to overwrite the images with the higher resolution images.

N.B. Users who are not members of the same group as the server may have difficulty using FTP to overwrite the files.

I tried this one. But the pictures are shown in the old (small) resolution in my browser. I emptied cache and asked some guys to check it with their PCs.
Title: Re: problem with photos greater than 1MB
Post by: Joachim Müller on March 28, 2006, 11:39:14 PM
@Cha83: reply to the thread you're refering to or start your own thread, don't try to hijack this one. Do as suggested in the upload troubleshooting section of the docs.