coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: akatato on September 17, 2005, 05:29:10 PM

Title: [Php memory] Batch upload and thumbmnails
Post by: akatato on September 17, 2005, 05:29:10 PM
Hi!

I got a problem with thumbnails in the batch upload: are all dead-image!
"Googling" in the forum i'v found that someone has solved with increasing of php's memory 16 up to 32. I can't change memory because I'm not using mine server but using a provider than I can't ask to change memory so i'v resized the image: now work!

So, somebody know the max image dimension (pixel) for the file that are uploading? in config page are so set:
Max width or height of an intermediate picture/video      = 400     
Max size for uploaded files (KB)          = 1024
Max width or height for uploaded pictures/videos (pixels)      = 6144


the image is
4169x2841px, 861kb

thanx in advance
Title: Re: [Php memory] Batch upload and thumbmnails
Post by: Nibbler on September 17, 2005, 05:38:11 PM
That's a huge image, resize it on your own computer before you upload.
Title: Re: [Php memory] Batch upload and thumbmnails
Post by: artistsinhawaii on September 17, 2005, 07:58:55 PM
Akatato,

Is there any specific reason why you would want to display an image 4000+ pixels wide?
The largest monitor will display just over 1200 pixels without scrolling.  So, unless you have a very specific reason to display images that are larger than that, the recommended maximum width should therefore be about 1200, I think.


Dennis


Title: Re: [Php memory] Batch upload and thumbmnails
Post by: akatato on September 17, 2005, 11:43:56 PM
The only reason to view image so larger is that i have it. I have more pics so big and i have to resize all so i would know if there is any specification about that.

A
Title: Re: [Php memory] Batch upload and thumbmnails
Post by: kegobeer on September 17, 2005, 11:47:36 PM
It takes a huge amount of memory to do a resize on an image that size.  It won't matter if you use GD or ImageMagick, you just won't be able to do much unless your host dramatically increases the total amount of memory you can use.

There are lots of posts about memory usage with GD and ImageMagick, on this forum and all over the web.
Title: Re: [Php memory] Batch upload and thumbmnails
Post by: artistsinhawaii on September 18, 2005, 12:34:13 AM
Quote from: akatato on September 17, 2005, 11:43:56 PM
The only reason to view image so larger is that i have it. I have more pics so big and i have to resize all so i would know if there is any specification about that.

It's always faster and better to resize larger images on your computer before uploading.  If your image processing program does not offer a batch resize option, you may want to try something like irfanview http://www.irfanview.com/  (There are many language packages available for this free software).  Just be sure you don't overwrite or delete your orignals in the conversion process.


Dennis
Title: Re: [Php memory] Batch upload and thumbmnails
Post by: Joachim Müller on September 20, 2005, 09:38:19 AM
you might want to take a look at the batch-resizing tutorial (using IrfanView) - link to tutorials at the top of this page.