Page 1 of 1

auto-resize when uploading images from frontend

Posted: 29 Feb 2016, 14:50
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.

Re: auto-resize when uploading images from frontend

Posted: 01 Mar 2016, 17:45
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

Re: auto-resize when uploading images from frontend

Posted: 04 Mar 2016, 01:33
by mattheuss
Thanks for your reply!

Re: auto-resize when uploading images from frontend

Posted: 05 Mar 2016, 21:13
by Jan
Ok