Announce: galleryadd.pl 2.00
|
iainlea
Joined: 2004-09-24
Posts: 10 |
Posted: Wed, 2005-10-05 11:01
|
|
A perl script to add images or a recursive directory structure to a Gallery. Now supports Gallery G1 and G2 installations. You can download it here: http://iainlea.dyndns.org/software/galleryadd/
Usage: galleryadd.pl [options] [file(s) | dir(s)]
-a album album to be used for uploading image(s) or directory
-c album create new album for uploading image(s) or directory
-C text caption for image(s)
-d text description for new album
-g url URL of gallery (default: http://gallery.mysite.com)
-G [1|2] gallery version being accessed (default: v1.x)
-l list available albums for specified gallery
-n do not verify if album exists before starting upload
-p pass password to use to login to gallery
-q quiet mode (unless errors are encountered)
-t text title for new album (if not specified uses -c value)
-u user username to use to login to gallery (default: admin)
-z zap caption that is by default derived from filename
-h help
-v verbose
Examples:
galleryadd.pl -g gallery.mysite.com -u admin -p secret123 -a mycars bmw.jpg
upload image bmw.jpg to album mycars
galleryadd.pl -g gallery.mysite.com -u admin -p secret123 -c xmas /tmp/*
create album xmas and upload images located in /tmp directory
Options are settable in the config file /root/.galleryaddrc.
Changelog: - added support to work with G1 and G2. Here is an example run that creates a top level album and uploads images: $ galleryadd.pl -G 1 -g gallery.mysite.com -u admin -p mypass -c 20050220 *.jpg System http://gallery.mysite.com/gallery_remote2.php [G1] Login: admin [OK] Create 20050220 Album: fetching list [OK] Album: 20050220 [OK] Upload race1.jpg [687K] [355KB/s] [OK] Upload race2.jpg [1.5M] [1.1MB/s] [OK] Upload race3.jpg [ 98K] [340KB/s] [OK] Enjoy. Feedback and any patches welcome. Iain |
|

Posts: 13451
Great Ian!
If you want, you can add/edit the information about this on http://codex.gallery2.org/index.php/Downloads and http://codex.gallery2.org/index.php/Other_Clients
h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org