Page 1 of 2
Phoca picasa category - no square thumb ??
Posted: 20 Aug 2015, 22:16
by rbuelund
I have set the medium size thumb to 260x260px - this works with "Normal" categories with pictures uploaded to the server, but not with a picassa imported category. The do get resized but not to squares ??
Re: Phoca picasa category - no square thumb ??
Posted: 21 Aug 2015, 00:08
by Jan
Hi, try to see:
https://www.phoca.cz/documents/2-phoca-g ... web-albums
Picasa has own sizes for thumbnails, so it is good to make the sizes by the Picasa options.
Jan
Re: Phoca picasa category - no square thumb ??
Posted: 21 Aug 2015, 06:33
by rbuelund
Ok - will try to alter the settings in Picasa then.
Thanks
Re: Phoca picasa category - no square thumb ??
Posted: 23 Aug 2015, 22:57
by Jan
Ok
Re: Phoca picasa category - no square thumb ??
Posted: 24 Aug 2015, 17:33
by rbuelund
But it does not look as if picasa can create square thumbnails - which actually is used in the design of the page ? What to do here ?
Re: Phoca picasa category - no square thumb ??
Posted: 24 Aug 2015, 17:50
by rbuelund
I just found this in the picasa api documentation:
"The following values are valid for the thumbsize and imgmax query parameters and are embeddable on a webpage. These images are available as both cropped(c) and uncropped(u) sizes by appending c or u to the size. As an example, to retrieve a 72 pixel image that is cropped, you would specify 72c, while to retrieve the uncropped image, you would specify 72u for the thumbsize or imgmax query parameter values."
From:
https://developers.google.com/picasa-we ... /reference
So maybe you should add an option to add the "c" character to the api call - to get square images returned ?
Re: Phoca picasa category - no square thumb ??
Posted: 29 Aug 2015, 00:06
by Jan
Hi, added to the feature request list.
Jan
Re: Phoca picasa category - no square thumb ??
Posted: 06 Dec 2015, 23:15
by rbuelund
Has this been added as a feature yet ?
Re: Phoca picasa category - no square thumb ??
Posted: 08 Dec 2015, 03:01
by Jan
Hi, I still didn't find time to take a look at this feature.
Will be great if you can pretest it:
administrator\components\com_phocagallery\models\phocagalleryc.php
line: cca 1383
function:
function picasaImages($user, $authkey, $albumId, $catid, $language, $pagination, &$errorMsg) {
if you go through this function, you will find the urls to the images - you can test to change it (add the suffixes)
Thank you, Jan
Re: Phoca picasa category - no square thumb ??
Posted: 08 Dec 2015, 19:24
by rbuelund
Ahaaa...well actually this feature is allready there !!
Line 73 to 88 in administrator/com_phocagallery/libraries/phocagallery/picasa/picasa.php
// Small Crop
if ($crop == 3 || $crop == 5 || $crop == 6 ||$crop == 7) {
$outputS = $outputS . 'c';
} else {
$outputS = $outputS . 'u';
}
// Medium Crop
if ($mediumT == 1) {
if ($crop == 2 || $crop == 4 || $crop == 5 ||$crop == 7) {
$outputM = $outputM . 'c';
} else {
$outputM = $outputM . 'u';
}
}
It just needs to be described somewhere! But with thumb size set to 160 px and "Crop thumbnails" set to "Small and medium" then this works perfectly !

Maybe a little description text about this on the Picasa Pane on the category would do ?