This is a script that can be run to import a tree structure of albums of images into Piwigo.
Starting with a specified directory, this and all the sub-directories in the tree structure are written as albums in Piwigo with all their JPEG images and Descriptions.
To run the Perl Script, go to “Start” then “Run” then “Cmd” to open a Command Window.
Use “cd” to change to an appropriate directory. This is useful to go to the top of the tree.
Then type the command line as in the example above (best to prepare it and copy & paste).
The command window will then scroll a list of the albums and images written to Piwigo.
Each JPG image is transferred full-size.
In addition, if there is a record named Descript.ion present in the directory, (such as that produced from Fotopic), this is read and the Caption for each Image is used as the Piwigo Image Title. These entries consist of lines containing the Image Filename and Caption, separated by a Tab. The default name of this record can be changed to another text file name.