Page 1 of 1

image resizing

Posted: 06 Aug 2008, 21:00
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.

Re: image resizing

Posted: 07 Aug 2008, 00:46
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