image resizing

Phoca Gallery - image gallery extension
frankk
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 06 Aug 2008, 20:49

image resizing

Post by frankk »

I am currently checking options for a gallery and phoca seems to be the number 1 candidate so far.

I was wondering if there is (or if there is plans) an image resizing feature available for phoca?

The idea is quite simple, take a pic that comes from your camera that is 4MB (3072px X 2048px) in size and have phoca resize it to a max value so the pic on the disk will weight less. i.e. if I take this same pic and reduce it to 1024 X 683 the size comes down to 624KB without compression.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: image resizing

Post by Jan »

Hi, Phoca Gallery rezise the images to:

large file (640 x 480 or your own size) - used in detail
medium file (100 x 100 or your own size) used in image list
small file (50 x 50 or your own size) used in category list...

but the original will be still the same... so no resizing of original image... if you have e.g. 4 MB image, it is very difficult to resize it on the server with php because of your GD library and PHP memory limit on your server... there are some limits which are not e.g. on your PC...

So it should be done on your PC....

How do I it... I have installed Phoca Gallery on my localhost (on my PC)... Then I have upload e.g. 3 - 5 MB images into the Phoca Gallery on my localhost, then I have set own size, e.g. 1024x768... all image were resized to 1024x768 by Phoca Gallery on localhost... and then I uploaded the large images (1024x768) to my server, ... on the server the GD library created thumbnails e.g. from 0,5 MB images instead of 3 - 5 MB... so the server save its memory and CPU...

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