auto-resize when uploading images from frontend

Phoca Gallery - image gallery extension
mattheuss
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 Feb 2016, 14:46

auto-resize when uploading images from frontend

Post by mattheuss »

Hi,

is it possible to setup the gallery, so it automatically does a resize of big image files?

Rather than force the user to have his images adhere to the limit of e.g. 3MB, it would be useful if gallery could upload any image file, resize it to specified size and use this resized image in gallery?

Thanks in advance. Love your gallery, thanks for the work put into it.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: auto-resize when uploading images from frontend

Post by Jan »

Hi, there is java upload applet which can resize the images before they are uploaded on the server.

In Phoca Gallery you can set larger size of upload, you can set limit e.g. 10MB but mostly it does not help because of limitation of server:

- mostly servers have post size limitation and upload limitation - Ok, this can be resized on the server, but one limit, it is difficult to solve is:
- processing the creation of thumbnails by GD library (a part of PHP on server)

On most servers, 2MB is mostly maximum GD (PHP) library can manage, on some server it is higher on some much more smaller.

So there are not limits set by Phoca Gallery. The parameters are here for you, you can set them how you need but you need to test which size your server can manage.

So if your server cannot manager images with size 1MB, you can set upload size on 1MB, if your server can manage e.g. 3MB, you can set 3MB

This is not a limitation, it is helper, so you can set the parameter for your server's limitations.

So if you build some extra power server, you don't need to force users with some limitation.

Phoca Gallery parameters aren't here for forcing users, they are here for helping site administrators. It is up to you which limit you set. But of course it needs to be set for the limits of server.

So answering this question:
"is it possible to setup the gallery, so it automatically does a resize of big image files?"

Phoca Gallery with help of your GD library automatically does a resize of big files. How big they can be, depends on your server memory and performance.

Jan
If you find Phoca extensions useful, please support the project
mattheuss
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 Feb 2016, 14:46

Re: auto-resize when uploading images from frontend

Post by mattheuss »

Thanks for your reply!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: auto-resize when uploading images from frontend

Post by Jan »

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