image resize

Phoca Gallery - image gallery extension
guavaaa
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 15 Mar 2015, 11:50

image resize

Post by guavaaa »

I'm new and tried to find the answer but can not find it. I am instested in there is some way in Phoca Gallery to resize images on upload.

Users wants to create category and upload images in front end. But they have like 3-4MB images. They just want to upload those images and expect the "website" or the gallery to resize them to for ex. 800x600px. Is that possible?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: image resize

Post by Jan »

Hi, in fact, it is up to your server. You can add limit for uploading images on your server but you need to know how your server strong is.

So you can e.g. add 4MB limit for uploading image but normally, e.g. the server (PHP and GD library) is able to make thumbnails from 2-3MB large image so then the error interrupts user's upload.

So yes, the thumbnails will be resized by parameters which are set in Options but original uploaded images stay untouched as they are used for different features (see similar topics)

E.g. with help of java upload applet the images can be resized before they are uploaded to server (on user's PC) but the problem is, user need to run java applet :idea:

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