coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: lpa on August 23, 2005, 09:46:37 AM

Title: Problems uploading photos
Post by: lpa on August 23, 2005, 09:46:37 AM
Hi,
When uploading to big photos, I get an error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@b-one.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log

By to big I mean pixelsize. It seems 1024x768 works fine, but larger photos get this error. The photos are uploaded into albums/edit, but cannot be included in cpg.

I have created a user: "help" pw: "help" and followed directions for this. Can anybody please have a look at the site, which is here: http://www.farumkyokushin.dk/cpg132

PHP Version 4.3.11
Linux srv24 2.4.30-vs1.2.10
post_max_size 8M
GD Version  bundled (2.0.28 compatible)


Rgds. Lars
Title: Re: Problems uploading photos
Post by: Joachim Müller on August 23, 2005, 10:17:29 AM
Nothing that can be done by us, your server simply can't take huge pics. Either ask your webhost for support or live with smaller pics.
post_max_size probably is not the problem, but memory usage.
Title: Re: Problems uploading photos
Post by: lpa on August 23, 2005, 10:30:20 AM
But it is not the filesize that is the problem, it is the pixels. I can upload 700KB large photos as long as they are smaller than a certain pixelsize. I didn't think it is possible for the host to limit the pixelsize, only the filesize?? I have asked and they support up to 4MB large files.

rgds. Lars
Title: Re: Problems uploading photos
Post by: Joachim Müller on August 23, 2005, 10:50:23 AM
creating the thumbs and intermediate pics is a memory-consuming process, where resolution of the pic matters, not individual file-size. Like I said: this is a memory issue with your server.
Title: Re: Problems uploading photos
Post by: lpa on August 23, 2005, 12:13:24 PM
But when I use the XP Web Publishing Wizzard everything looks fine as long as I reduce the pics to 1024x768 or less. Is there any way I can force every uploaded picture to be reduced in size the same way when the users upload by "Upload file" menu?

Rgds, Lars
Title: Re: Problems uploading photos
Post by: Joachim Müller on August 26, 2005, 07:44:18 AM
Basically, the XP Publishing Wizard resized the pics before uploading them. You should do the same thing when using "traditional" http upload or ftp-upload and batch-add: resize the pics on your client. Take a look at the tutorial (http://coppermine-gallery.net/tutorial/) "Batch-resizing pics".