• Can anyone please help me define a custom Picture List thumbnail size, other than 72 144 or 288?
    I’d changed the value from 288 to 200 in param.php and kpicasa_gallery.php for all instances, to no avail (still shows as 72 or 288). Suggestions, solutions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author kag

    (@kag)

    Those aren’t random values, they match the dimensions of all the different thumbnails provided by Picasa.

    Thread Starter uxdesign

    (@uxdesign)

    Ah, I see… thanks!

    Awesome plugin!

    Is there a way to make the thumbnails into nice squares instead of this mess? I have pictures of all sizes and forms in one album, it looks terrible. How can I use a script like timthumb to do this. Is there a possibility. Or are they locked from picasa?

    I love the simplicity of this plugin, but want to style the thumbs a bit.

    Thanks.

    ptriek

    (@ptriek)

    I’ve been digging in the code a bit, and found a way to make the thumbnails into squares:

    kpg.class.php, line 216:
    change
    $url = 'https://picasaweb.google.com/data/feed/api/user/'.urlencode($this->username).'/album/'.urlencode($album).'?kind=photo';
    into

    $url = 'https://picasaweb.google.com/data/feed/api/user/'.urlencode($this->username).'/album/'.urlencode($album).'?kind=photo&thumbsize=144c';'

    (add &thumbsize=xxxc – the c stands for ‘cropped’

    kpg.class.php, line 329-331:
    change

    $thumbURL = (string) $photo->media_group->media_thumbnail[1]['url'];
    $thumbW   = (string) $photo->media_group->media_thumbnail[1]['width'];
    $thumbH   = (string) $photo->media_group->media_thumbnail[1]['height'];

    into

    $thumbURL = (string) $photo->media_group->media_thumbnail[0]['url'];
    $thumbW   = (string) $photo->media_group->media_thumbnail[0]['width'];
    $thumbH   = (string) $photo->media_group->media_thumbnail[0]['height'];

    This solution is of course a bit messy – the thumbnail size is now hard-coded in the php file.
    But it works like a charm…

    ptriek

    (@ptriek)

    … oh and also change this line (somewhere around line 410) to:

    $fullURL = (string) $photo->media_group->media_content[0]['url'];

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: kPicasa Gallery] Custom Picture List thumbnail size?’ is closed to new replies.