Thumbnail selection

Phoca Gallery plugins - plugins for Phoca Gallery extension
Opendreas
Phoca Member
Phoca Member
Posts: 18
Joined: 29 May 2024, 03:02

Thumbnail selection

Post by Opendreas »

Hello,

the documentation has a type parameter for selecting a thumbnail, but it doesn't work.
type - set type of images: 0 - standard medium image, 1 - small image (Mosaic effect), 2 - large image (for single image displaying)
https://www.phoca.cz/documentation/77-p ... ery-plugin

If I understand correctly code from the phocagallery.php, then the documentation is not up to date and almost all parameters have been removed?

Code: Select all

$view = '';
$id = 0;
$max = 0;
$imageid = 0;
$limitstart = 0;
$limitcount = 0;
$imageordering = 1;

$image_categories_size = 'medium';
$img_cat = 1;
I display one image in an article or a category with images, and everywhere the middle thumbnail is taken by default.
Thumbnails are needed to improve navigation through the article and speed up the loading of the site.
Phoca Gallery is not able to display the original photo, so the maximum resolution, for example 5000 x 4000 pixels, has to be set for a large thumbnail.
It is logical that to display the Grid you need to use a small thumbnail, for example 320 x 240 pixels, and to display one photo, a medium one, for example with a resolution of 800 x 600 pixels. Otherwise, all this loses its sense.

How can I implement what I described? Are there any additional customizations planned?
Opendreas
Phoca Member
Phoca Member
Posts: 18
Joined: 29 May 2024, 03:02

Re: Thumbnail selection

Post by Opendreas »

In Phoca Gallery Button Plugin
https://imgur.com/a/rpzcnRL

I can select the thumbnail size for categories
https://imgur.com/a/GOnGkPB

Is it possible to add such an option for images and Masonry?
https://imgur.com/a/1Ayklsp
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48360
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Thumbnail selection

Post by Jan »

Hi, yes, the documentation needs to be updated, the plugin was completely overwritten to meet new web requirements so many parameters were removed.

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