-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
36 lines (24 loc) · 1.48 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
== G2Piwigo ==
G2Piwigo converts an existiung menalto Gallery2 installation to a shiny new Piwigo (http://www.piwigo.org) gallery.
The following properties are preserved:
* Titles, summaries, and descriptions for images and (sub)albums
* Sort order for (sub)albums
* Highlight images for (sub)albums
* Photo comments
The following properties are not (yet) converted:
* Album comments (piwigo does not support those)
* ratings
* keywords
* thumbnails
=== Running the script ===
The script accesses the G2 and piwigo sql databases and updates piwigo after a local quick sync
* first copy the contents of g2data/albums to piwigo/galleries
* generate piwigo thumbnails (in the piwigo admin panel)
* then syncronize in the piwigo admin panel to seed the db.
* now run the script in the piwigo/galleries folder as:
find | grep -v /thumbnail | grep -v /pwg_high | cut -c3- | ./convertcomments.pl --menalto-dbname=gallery2 --menalto-dbuser=... --menalto-dbpass=... --menalto-table-prefix=g2_ --menalto-column-prefix=g_ --menalto-dbhost=... --piwigo-dbname=piwigo --piwigo-dbuser=... --piwigo-dbpass=... --piwigo-dbhost=... --piwigo-prefix=...
(this will pass a list of paths to the actual images, while filtering out the thumbnail subfolders)
=== Finishing up ===
* You will need to install and activate the "Extended Comments" plugin for the album descriptions to show up correctly!
* In the admin interface under tools->maintenance click on "Update albums information" and "Update photos information"
Done!