CLI import tool?

memory

Joined: 2003-04-08
Posts: 3
Posted: Sat, 2003-04-12 05:02

Has anyone yet written a CLI (perl or phpcli) tool to import directories of images as gallery albums? The web form is okay for occasional work, but kind of aggravating to use when importing large numbers of images that were, say, previous stored in a much less capable webgallery program. :smile:

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Sat, 2003-04-12 08:00

Look at addimage on the <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&amp;name=phpWiki&amp;file=index&amp;pagename=Scripts" TARGET="_blank">Scripts Page</A><!-- BBCode End -->

 
memory

Joined: 2003-04-08
Posts: 3
Posted: Sun, 2003-04-13 20:38

Hm, interesting. Not quite what I was looking for, as it actually does it by uploading the images to the server, but there's some other stuff on that page that'll help a lot. Thanks!

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Wed, 2003-04-16 17:47

It's possible to write a php-cli script to do the work entirely within php
and skip all http access. I have a crude one that I wrote myself that
works okay. Although, I had to patch the php sources to allow me to
run the php-cli binary as a specified arbitrary user so it didn't screw up
all my permissions.