coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: jfattizzi on November 27, 2005, 02:26:52 PM

Title: Unable to upload large pictures
Post by: jfattizzi on November 27, 2005, 02:26:52 PM
I have read all the posts on large pictures and it didnt help.  When I upload small files, say 1024x768 they work fine.  Anything larger I just get a blank page after it says it loaded it succesfully.  I hit continue and it goes blank. 

It is not my hosting company, because I can attach the same large picture to a message on my php forums. 

Can anyone help.  It seems to fail when the upload.php files is exectuted or something. 

you can log into my site with the following account

tester
123456

www.listar278.org/photogalphp/index.php

thanks.
Title: Re: Unable to upload large pictures
Post by: kegobeer on November 27, 2005, 02:29:35 PM
It is your hosting company.  Coppermine does more than just upload images - it has to resize them twice to make the intermediate and thumbnail images.  This takes memory, and a lot of it.  There's a basic formula that tells you how much memory is needed to resize an image, depending on if you are using GD2 or ImageMagick.  Your host doesn't have enough memory allotted for this operation when you are uploading large pixel size images.
Title: Re: Unable to upload large pictures
Post by: jfattizzi on November 27, 2005, 02:34:31 PM
But the file is put into the edit directory under some temp name.  SO it uploads it. 

Is there away around it other than getting a new hosting company and downsizing my pics.
Title: Re: Unable to upload large pictures
Post by: kegobeer on November 27, 2005, 02:50:21 PM
Like I said, Coppermine does more than just upload the image.  After it's uploaded via HTTP Upload, it's manipulated with GD2/ImageMagick - that's causing your blank screen.

Review the FAQ and the troubleshooting guides.  You can always ask your host to increase the values in php.ini.

As the admin, you should always use batch add to add your pictures, not the web upload process.  Read the documentation for more information on batch add.
Title: Re: Unable to upload large pictures
Post by: jfattizzi on November 27, 2005, 04:37:00 PM
The batch process does the same thing with large files.  Now what?
Title: Re: Unable to upload large pictures
Post by: kegobeer on November 27, 2005, 04:46:09 PM
Try adding a smaller number of images during the batch add process.
Title: Re: Unable to upload large pictures
Post by: jfattizzi on November 28, 2005, 03:56:45 AM
smaller than 1?
Title: Re: Unable to upload large pictures
Post by: Joachim Müller on November 28, 2005, 07:43:49 AM
http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
Title: Re: Unable to upload large pictures
Post by: artistsinhawaii on November 28, 2005, 08:11:16 AM
If your webhost will not increase the memory limit for your site, you really have only two options as I see it.

1) use a third party software to batch resize your images prior to upload. Then ftp them to your site.

2) Find a webhost that offers you a greater memory allocation to handle uploads/downloads and scripts execution.

Dennis