plugin to retrieve photos from picasa web album

I was working again, after a few months, in my attempt of plugin: spicasa [1]

Basicly, it’s a clone of flickr_cc [2][3] developed by Arno, using this unofficial library [4] to work with picasaweb API.

It works, but partially. The problem is that the function copie_locale() [5] fails if the full-size image is bigger than 800px, wich is the maximum « embeddable » size that google allow [6].

So, if I try to retrieve a bigger size, (see this line [7]), I can get the absolut URL to the image, but copie_locale() return False;

There is a way to pass over this restriction? I think if I want download the file from picasa and host it in my own server it should be possible.

thanks
Martin

[1] http://zone.spip.org/trac/spip-zone/browser/plugins/dev/spicasa/
[2] http://plugins.spip.net/Flickr-CC
[3] http://zone.spip.org/trac/spip-zone/browser/plugins/test/flickr_cc
[4] http://cameronhinkle.com/blog/id/3696159074811309536
[5] http://doc.spip.org/@copie_locale
[6] http://code.google.com/intl/es-AR/apis/picasaweb/reference.html#Parameters
[7] http://zone.spip.org/trac/spip-zone/browser/plugins/dev/spicasa/spicasa_options.php#L94

Maybe you only have to add this line to mes_options.php :
@define('_COPIE_LOCALE_MAX_SIZE',2097152); // Max Size in byte

.Gilles

On Thu, Feb 12, 2009 at 6:34 AM, Martín Gaitán <gaitan@gmail.com> wrote:

I was working again, after a few months, in my attempt of plugin: spicasa [1]

Basicly, it’s a clone of flickr_cc [2][3] developed by Arno, using this unofficial library [4] to work with picasaweb API.

It works, but partially. The problem is that the function copie_locale() [5] fails if the full-size image is bigger than 800px, wich is the maximum « embeddable » size that google allow [6].

So, if I try to retrieve a bigger size, (see this line [7]), I can get the absolut URL to the image, but copie_locale() return False;

There is a way to pass over this restriction? I think if I want download the file from picasa and host it in my own server it should be possible.

thanks
Martin

[1] http://zone.spip.org/trac/spip-zone/browser/plugins/dev/spicasa/
[2] http://plugins.spip.net/Flickr-CC
[3] http://zone.spip.org/trac/spip-zone/browser/plugins/test/flickr_cc
[4] http://cameronhinkle.com/blog/id/3696159074811309536
[5] http://doc.spip.org/@copie_locale
[6] http://code.google.com/intl/es-AR/apis/picasaweb/reference.html#Parameters
[7] http://zone.spip.org/trac/spip-zone/browser/plugins/dev/spicasa/spicasa_options.php#L94


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

well, I was working on this a few hours more tonight and although I couldn’t fix it, I add a few new features and improved. I think it’s working fairly well.

I like very much to receive some feedback, so if somebody have a little time to try it, I’ll be glade.

thanks.
Martin