Hi everyone,
I wrote a crude but potentially useful Python script to assist people (okay, mostly me) in migrating from Menalto Gallery 3.0.x to ZenPhoto 1.4.x:
http://derek.trideja.com/nirvana/You'll need a little Unix know-how and elbow grease but I hope someone out there manages to get some use from it.
I got sick and tired of waiting for Menalto Gallery to become simple and fun again like it was in 2002, hence the birth of this script. :-) Thanks for ZenPhoto!
Cheers,
Derek
Comments
Can't find the zenphoto.cfg file. Has it been renamed and where is it? Changing the file is mentioned on GitHub.
Any chance of making this an extension? Or any other suggestions for a non programmer?
http://www.zenphoto.org/news/installation-and-upgrading#content-of-the-zenphoto-package
Migrating the albums and images itself is quite easy. You basically just have to move the `var/albums` folder contents to Zenphoto's `albums` folder. Zenphoto is file system based and will recognize them as albums.
However this of course does not migrate the database contents unless you have embedded title, descriptions of your images within the metadata. All we know about is listed on our site's extensions section.
Not looking forward to having to update the caption or MOD_REWRITE for that many files.
Copying the albums will work of course except the data. If you have the chance to export your data into separate xmp files that could work using the xmpMetaData plugin.
And maybe this tutorial by a user might be of help:
http://blog.markheadrick.com/2014/08/15/galleries-moved-from-gallery-to-zenphoto-platform/
> nirvana.py migrate
didn't work at all.
> python nirvana.py migrate
worked, but caused many errors, and in the last line it wrote
"sqlalchemy.exc.NoSuchTableError: `zp_tags`"
I don't know what the problem might be. Perhaps German umlauts in the album names?
http://blog.markheadrick.com/2014/08/15/galleries-moved-from-gallery-to-zenphoto-platform/
Now I have to use the Excel sheet to generate a mysql script which changes the dates and titles of the Zenphoto albums according to the Excel sheet.
I only wonder why the title columns contains so many cells containing "a:1:{s:5:"de_DE";s:14:" and whether I can simply use this in every row.
`"a:1:{s:5:"de_DE";s:14:"`
That's how strings of fields are stored (serialized) that support being multilingual:
http://www.zenphoto.org/news/multi-lingual-sites
If you only use one language you can add them as plain text without serialization. Best you set the backend to the default English as that has priority if you only use ony language anyway. Later switch back to German if you use that. The next time you save something manually you will get this serialized string automatically.
Maybe you VBA script will be of use to others so if you can it would probably usefull if you could publish it somehwere (GitHub or the like).