Import photo descriptions from a text file?

longint

Joined: 2008-03-21
Posts: 34
Posted: Fri, 2008-03-21 19:51

Is there an easy way to import description to my photos from a textfile? My older webapp (zphoto) used a text caption file where the image names and some short descriptions are included. Of course there has been no problem in creating the albums and import the photos itself, but due to the high number of items I'd like to import the descriptions also automagically. I'd be able to seperate the descriptions by album and/or to produce different contents of the text file (right now there is a line for each picture containing the filename and the description seperated by tab).

Any help!?

TiA

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Mon, 2008-03-31 23:33

Your best bet is to look at the existing migration tools and do the importing from within Gallery. Trying to write directly to the Gallery database will likely end in tears.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Mon, 2008-03-31 23:35

Oops, I confused this thread with another (kind of) similar thread. In this instance, you might be able to get away with updating the database tables directly (and clearing the cache afterwards), but then you'll likely have to write a bunch of custom code.