Picasa button for Gallery 3

mfoster711

Joined: 2005-03-06
Posts: 118
Posted: Sat, 2010-10-23 17:14

I currently use the Gallery button for Picasa to upload all my photos straight from Picasa to my Gallery 2 site. Works great! Anything like this available for Gallery 3?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2010-10-23 17:44

No, not yet.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
mfoster711

Joined: 2005-03-06
Posts: 118
Posted: Sat, 2010-10-23 19:25

Any clue what is involved to create this? Not sure if this is totally beyond my abilities or something I might look to create.

 
Techno79

Joined: 2008-04-10
Posts: 5
Posted: Sat, 2010-11-06 13:39

I too am interested in some way to export album information from Google Picasa Application to Gallery 3. What's the easiest way to do this? Thanks.

 
webmalone

Joined: 2007-03-06
Posts: 30
Posted: Thu, 2010-12-02 18:18

What would it take to get the Picasa button to work with Gallery 3?

How do you install the Picasa button?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2010-12-16 20:47

It looks like Picasa has APIs for uploading stuff:
http://code.google.com/apis/picasa/docs/button_api.html
http://code.google.com/apis/picasa/docs/web_uploader.html

Somebody will need to go through the APIs and create a Gallery 3 button for Picasa, then write the Gallery 3 module to receive the photos.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
iresmi

Joined: 2011-02-02
Posts: 4
Posted: Wed, 2011-02-02 15:14

Hi all

Here is an uploader for Gallery3 from Picasa.
It's quite raw (few error checking, not much secure), but it fits my needs and can be useful to others...

Using the Picasa APIs :
Picasa web uploader API and
Picasa button API

And the Gallery3 REST API

Based on samples by Google and
Bharat Mediratta

Requirements :
Picasa 3+, webserver, PHP
PEAR with Mail, Mail_mime, HTTP_request
Gallery3 whith short URL

Use :
-----
Unzip on your server
Edit config.php
Edit {2baee28b-264d-4c8b-be75-12e8cacccd15}.pbf (it's an XML file)
zip it in iresmi_picasa_g3_uploader.pbz (it's a zip file)
Browse to add_button.php and allow to add the button in Picasa

To admin : then Picasa can be added to Tools that can export photos to Gallery3 with a link to this file...

Now I should look for some documentation to make a module...

 
kcackler

Joined: 2007-11-07
Posts: 7
Posted: Wed, 2011-02-09 19:14

Well, it works, but it's rough.

1. When adding a new album through the module, I get an IE error.
2. Why do I have to configure resize settings through config.php? Why can't Gallery take care of the resizing? Is there not a way to just send the photo to the gallery API and let it take over from there?
3. You should be looking for other file extensions as well. Something like $fname=substr($fname, 0, strrpos($fname, '.')); would set $fname to be the filename of the image, minus the extension. Then you could replace the underscores with spaces to get a correct title.
4. You should probably remove the https:// from the various configuration files. It's very easy to overlook that and have a non-working button, which is VERY difficult to get rid of.
5. On add_button.php, you should consider having it generate the pbz file ON THE FLY. That way the users don't have to worry about editing the XML file, then zipping it with a pbz extension, etc....Just zip the contents up and save them on the server OR have Picasa pull the button from /generate_picasa_button.php, which delivers the dynamically created zipped file.

It's definitely a good start. I was just about to bite the bullet and start on this one since nobody had yet. Glad you took it on.

 
iresmi

Joined: 2011-02-02
Posts: 4
Posted: Mon, 2011-05-23 19:19

Hi
Like I said it was a basic implementation. But you're right and most of your remarks are relevant. Anyone is welcome to improve what I did... If I can find some time, I'll do it...

1. What kind of error ?
2. That's just that I didn't want to post full fullsize pictures. Picasa can resize before...
3. Yep
4. Yep
5. Good idea

 
danmer

Joined: 2013-03-02
Posts: 6
Posted: Mon, 2013-03-04 10:16

Module not work
Can anybody advice or help?

Ater install button in Picasa- i have window with "403 error"

P.S. All module is installed and works
REST API
PEAR package Mail.php
PEAR package Mail/mime.php
PEAR package HTTP/Request.php
libraries directory (picasa_uploader/libraries/) is writable