Skip to content

Instantly share code, notes, and snippets.

@drakulavich
Created August 4, 2012 08:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save drakulavich/3256146 to your computer and use it in GitHub Desktop.
Upload images to picasaweb and get direct urls

Установить пакет googlecl:

sudo apt-get install googlecl

Примеры

Загрузить картинку в альбом Blogger'а:

google picasa post "♠ Краплёная колода" gnome-disk-utility.png

Посмотреть ссылки последних десяти картинок:

google picasa list --fields url-direct "♠ Краплёная колода" | tail

Ссылки выглядят примерно так:

http://lh5.ggpht.com/-8VyITYrdxk4/T_1_FCAvWmI/AAAAAAAAXyE/DJxnhyQkem4/gnome-disk-utility.png

Превью заданной ширины получается добавлением перед названием файла конструкции вида s580. Например:

http://lh5.ggpht.com/-8VyITYrdxk4/T_1_FCAvWmI/AAAAAAAAXyE/DJxnhyQkem4/s580/gnome-disk-utility.png

Оригинал картинки доступен через s1600 по адресу:

http://lh5.ggpht.com/-8VyITYrdxk4/T_1_FCAvWmI/AAAAAAAAXyE/DJxnhyQkem4/s1600/gnome-disk-utility.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment