![]() |
|
How to create a customized import script - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: How to create a customized import script (/thread-9067.html) |
How to create a customized import script - boubil - 2011-09-14 Hi I want to migrate my old home made galery to ZenPhoto. My home made galery is made of a folder with all the photos altogether. And text-files, each containg the file-names, titles and descriptions of the images in the galerie. How could I import all of this ? Thank you for your help and advices. Nathalie How to create a customized import script - kagutsuchi - 2011-09-14 Zenphoto is filesystem-based, so importing your images is as simple as a drag-and-drop to the correct location. If your images are not already in some sort of folder hierarchy, you may need to separate them out into albums/subalbums (on the filesystem, folders/subfolders) either by hand or programmatically by the contents of your metadata files. Beyond that, it's all metadata. It really depends on what format the files are in (flat files?) and how good you are at coding. If the files are kept in a very specific format, it should be doable to write a Zenphoto utility to update the metadata programmatically for both images and albums. It would be much easier if the metadata were kept in XMP sidecars (a thought for the future, perhaps). The best way to get started is to look through the User Guide and Functions Documentation here on the site. Specifically, I would also look at the Object Model for Zenphoto; it should help with figuring out how to instantiate and add metadata to images/albums. |