2007年12月26日星期三

Picasa upload tool

以前在Windows用Picasa的时候,用客户端上传图片到picasaweb很方便,现在发现Linux版本的Picasa客户端没有上传功能。
所以我自己用API写了一个小程序,Java代码70行,支持创建相册、批量上传,使用及其简便。下面是ReadMe:

PicUp version 1.0 Readme

-What does this application do?
-Simple tool for picasa web. It helps you to create albums and upload picture files easily, just in console.

-How to install?
-Take these steps:
step 1)
Download the zip package from this URL
http://code.google.com/p/picasup/
and then extract all into a path whichever you like, for example /home/todwong/workspace/picUp/
step 2)
create an shell script file in $PATH, such as /home/todwong/bin/picup, type these into it:
/home/todwong/workspace/picUp/picup
step 3)
chmod +x /home/todwong/workspace/picUp/picup /home/todwong/bin/picup

-How to use?
cd into your folder with picture files, such as /home/todwong/pic/hangzhou/
execute this shell directly
picup
which refers /home/todwong/bin/picup
Now, input your picasa account info, and then determine whether to create a new album.
If you do, input y, and then it will create it with the title equals the current folder name.
Otherwise, just input Enter, in which case you means there exist the album with the title equals the current folder name already.
After that, the program will upload each jpg file in current folder onto this album, one after another.

-Can I use it in windows?
-Of course, but you have to create .bat files for convenience. Picasa client for windows might be a better choice, if you don't matter about his background process;p

Thanks to
http://code.google.com/apis/picasaweb

没有评论: