[ansel] Import pictures from folder structure

Michael J Rubinsky mrubinsk at horde.org
Fri Dec 30 00:42:20 UTC 2011


Quoting Samuel Wolf <samuel_wolf at web.de>:

>> You can try using ansel/bin/ansel. It can recursively import
>> directories of images, creating the same gallery/subgallery structure
>> as the directories. The only drawback is it will create all the
>> subgalleries under a single parent gallery. You can always move them
>> once the images are in Ansel though.
>
> Can you explain me on a example how to do that?
>
> ansel import -d /tmp/urlaub
> [...]
> ansel: error: Missing Horde credentials.

mbp:bin mrubinsk$ ./ansel --help
Usage: ansel [--options] [command]

Available commands are:

(Note that some command may require sudo access.)

   import: Recursively import images from folder specified with -d
   list:   List all galleries or (if used with -g) all images in  
specified gallery
   create: Create a new gallery. Optionally used with -n to set name  
and --description
           to set description
   add:    Add a new image specified with the -f option to a gallery  
specified with
           either -g or -s
   reset [thumbs|stacks]:  Reset all generated images, optionally  
restricting to
                           either thumbnails or gallery stacks.
   exif:   Extract exif data for all images in the specified gallery. This will
           replace any existing exif data for all images the requested gallery.

Options:
   -u USERNAME, --username=USERNAME
                         Horde username
   -p PASSWORD, --password=PASSWORD
                         Horde password
   -g GALLERY, --gallery=GALLERY
                         The gallery id
   -n NAME, --name=NAME  Name to use for creating new gallery
   --description=DESCRIPTION
                         Description to use when creating new gallery.
   -s SLUG, --slug=SLUG  The gallery slug
   -k, --keep            Do not delete empty galleries on remote server after
                         export is complete.
   -z, --gzip            Use gzip compression
   -l, --lzf             Use lzf compression
   -r REMOTE, --remote=REMOTE
                         Connect to remote Ansel server. This should be the
                         path to rpc.php
   -d DIRECTORY, --directory=DIRECTORY
                         Recursively import any images in this local directory.
   -f FILE, --file=FILE  Add this single image file to the gallery specified
                         with either -g or -s
   -h, --help            show this help message and exit


..so, you are missing the -u and -p options.
-- 
mike

The Horde Project (www.horde.org)
mrubinsk at horde.org



More information about the ansel mailing list