Can't create thumbnail for large pictures, more than 3M

Phoca Gallery - image gallery extension
m3ug
Phoca Member
Phoca Member
Posts: 11
Joined: 18 Mar 2010, 22:58

Re: Can't create thumbnail for large pictures, more than 3M

Post by m3ug »

Have tried on another server and get this result:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 15488 bytes) in /hsphere/local/home/m3ugdk/m3ug.dk/administrator/components/com_phocagallery/libraries/phocagallery/image/imagemagic.php on line 214

Was told by my webhost that it is the script demanding to mutch memory.

It works fine with pictures under 3M

Is that going to change or shoud I just settle with smaller pictures?

Rgds Morten
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't create thumbnail for large pictures, more than 3M

Post by Jan »

Hi, yes, you need to upload smalle images. Thumbnails are made by your server, by GD library, so everything depends on server settings (memory, cpu, time, GD). Mostly server is not like standard PC, so there are some limitation in work with graphic.

Jan
If you find Phoca extensions useful, please support the project
ccuster
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 15 Mar 2011, 09:01

Re: Can't create thumbnail for large pictures, more than 3M

Post by ccuster »

I have looked for many extensions, but really liked Phoca the best... except for the 3MB limit. Here is a work around that I have been using that seems to work.

For Images that are giving you trouble, I use a program to make them smaller and make sure the dimensions are within 2000px. (I use Faststone). I upload these, then let Phoca do its work. After said and done, I then reload the original images to my site, and voila, I have thumbnails and my original images (that can be downloaded).

I hope this helps.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't create thumbnail for large pictures, more than 3M

Post by Jan »

Hi,
except for the 3MB limit
Phoca does not limit anything, all depends on your server (cpu, memory, php, gd, etc.)

Yes, mostly 3MB is to much for standard servers, so in such case images must be resized before creating thumbnails

Jan
If you find Phoca extensions useful, please support the project
Post Reply