Adding a lot of albums at once

mikeymckay

Joined: 2002-08-19
Posts: 1
Posted: Mon, 2002-08-19 16:56

I have gallery setup and working brilliantly. Good stuff. The problem is I have 40-50 different directories full of pictures. I am getting tired of the slow process of pointing gallery to the directory that is already present on my server with all of my pictures in it, waiting for it to fetch, resize and add.. Is there some kind of command line interface to gallery so that I could do something like:

foreach directory{
create new album, set name of album to directory name
add all pictures in directory to album
}

That way I could start it off and let it run over night. Any ideas??

 
CarpetBagger
CarpetBagger's picture

Joined: 2002-08-09
Posts: 49
Posted: Tue, 2002-08-20 15:56

Look in the contributed code section. I think there is a PERL script to insert all the files in a directory. I've never tried it myself, but I did download it, to look at someday. It contains two scripts, AddDir and AddImage.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Wed, 2002-08-21 07:19

I modified the perl script adddir.pl, look in the customize forum for my posts.
I also recommend switching to ImageMagic, it will make the process much
faster. If you use my mods, you can create new albums, set the title and
description as well as upload all the files in a directory at one time much faster
then doing it any other way currently.

I had, still have, the same issue as you which is what prompted me to do all that :razz: