Thursday, July 26, 2007

Another Picasa Uploader on Linux

As a Linux user, I've spent a couple of hours on uploading photos to Picasa Web Album through its web interface. Then I found that Google Data APIs (GData) is provided and it's interesting. Therefore, I wrote this tool that transfers whole album at one command to Picasa Web. Most code are simply copy from developer's guide, but this still takes a couple of hours.

GData provides a protocol for accessing data on the web (by basic POST and GET method), and it corresponds to Blogger, Google Notebook, Picasa Web Album and other services. GData Java Client Library provides a fast way to use GData by Java, and there are libs for other programming languages such as python, .NET or PHP.

But Google do not provide an official tool for uploading photos to Picasa on Linux-like systems. Currently, there are two python scripts written for such uploading tasks, picasa_upload.py and upload2picasa. And Firefox Universal Uploader is a Firefox add-on that works for uploading files on many sites. On the other hand, F-spot is an image viewer has such feature.

My Java class is similar to picasa_upload.py and simply uploads given images to Picasa. I knew that before this work and it is just for fun.

Here are source code and picasaput package containing library files.

Update: see the new post.

No comments: