Is now impossible for me to change the size of the images that are displayed. Once you have clicked through from the */albums page, into the indivitual albums the thumbnails are 72x54px, and can not be resised in the module control panel. The full size images now max out at 288px. The random picture now only displays at 72px too.

I noticed google changed some things on picasa this week. Perhaps they changed something in the API too.

Thanks for all the good work. This Picasa module was the one that made me choose drupal. I hope you can bring back the previous functionality.

Cheers

Greg McMullin

Comments

cyberswat’s picture

Welcome to Drupal! I'm extremely happy about some of the latest changes Google made to the API ... I'll take this into advisement as I refactor the code. Thanks.

gergtreble’s picture

Brilliant. Thanks a lot.

Keep up the good work.

KoopaOne’s picture

I noticed the problem at the author's webpage too! So it's at least not my fault ;)
Hope we'll see a fix soon and thanks for the good work!

andrew404’s picture

Hey all,

I've got a fix for this..... I've hacked my picasa module up a bit so the line numbers won't match up but I'll post a fix for it when I get a chance......

You can see my album with 144px sized thumbnails at:
www.andrewcherry.com

I think I'm going to start hacking around a bit more to introduce some more of the picasa api features.

cheers,
Andrew
The Cherry Pit - www.andrewcherry.com

andrew404’s picture

Title: Something has changed. » Thumbnail Size Fix

I've posted a fix on my site, you can view it Here
cheers,

Andrew
The Cherry Pit!

gergtreble’s picture

Nice one! Ill have a go at fixing it this weekend.

I notice that the full sized images are still stuck on 288px. But its a good start!

Any news on when the new release is due?

andrew404’s picture

Hey gergtreble,

Let me know how it goes for you.

As to the limitations of the full sized image I'll have a look into it.

Perhaps I should start touching base with Cyberswat as to adding things in to the module, but my current interests are to have it working off of Curl, get some style choice in there, or perhaps some other presentation styles, and Private album access is a big one for me..... also perhaps get the zend_Gdata api better represented in the code :)

cheers,
Andrew

The Cherry Pit - www.andrewcherry.com

Only local images are allowed.

cyberswat’s picture

I really appreciate the help. Another user has pointed out the drupal_http_request method http://api.drupal.org/api/function/drupal_http_request/5 that should be used over a custom approach. I've been working on implementing Picasa into Drupals node system and integrating it with Views, et all. There should be a 5.2 dev release that shows up soon on the project page containing my code. If you would like to help out please download that code and let's work on integrating your changes.

iljadica’s picture

Hi,
I couldn't make it work (thumbnail size was 72 and image size in gallery was also small). So I did following:

in method picasa_display_album_contents() I replaced

$image = str_replace("imgmax=72", "imgmax=".$thumbSize, $attributes['URL']);

with

$image = str_replace("/s72", "/s".$thumbSize, $attributes['URL']);

The same I did in method picasa_display_album_image():
I replaced this:
$image = str_replace("imgmax=288", "imgmax=".$thumbSize, $image);
with
$image = str_replace("/s288", "/s512", $image); //size is hardcoded to 512

I hope that someone will find this info useful.

Steve McClelland’s picture

Your method seems simple enough, but help a newby out here... what or where is "method picasa_display_album_contents()" Is it in the CSS file? Is it PHP? I can't find it...help!

"I replaced
$image = str_replace("imgmax=72", "imgmax=".$thumbSize, $attributes['URL']);
with
$image = str_replace("/s72", "/s".$thumbSize, $attributes['URL']);

JamesMcNeill’s picture

Title: Thumbnail Size Fix » Thumbnail Size Fix - using the picasaweb slideshow instead
Component: Miscellaneous » Code

I was having trouble with the thumbnails too, so I've got another hacked version of the original picasaweb module.

Main changes:

  • It embeds picasaweb slideshows instead of showing the entire album as thumbnails
  • The index of albums is now a list - should still be able to have the old layout with the right css
  • The album title can be customised in the picasaweb settings page (so can the size of the embedded slideshow)
  • The album page includes the album description

I've gone with the slideshows instead of the thumbnails because it provides navigation between the images and the slideshows look cool. If you don't want the slideshows then this version isn't for you!

I've got it running http://www.christchurchaikido.co.nz/albums and http://www.cyclonecycles.co.nz/albums.

It still only handles a single picasaweb login per site.

If you want to use it prior to the new version coming out, download a copy.

I consider this a short-term fix because there's active development on a new version, not this version. If it's useful I'll figure out how to make it more official.

RingoDS’s picture

James,

Thanks for your modified Picasa module. I like this one better than the plane thumbnail album. Have you been in contact with the original author to get your changes incorporated into the main development line?

Greetings,

Ringo

cyberswat’s picture

Status: Active » Closed (fixed)

FIxed in 5.x-3.1