Skip to content

dschwen/g2piwigo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

== 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!

About

Migrate your Gallery2 database to Piwigo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages