Announcement

  •  » Extensions
  •  » Scripts to migrate from Coppermine to Piwigo

#1 2021-06-01 16:51:17

th555
Member
2021-06-01
1

Scripts to migrate from Coppermine to Piwigo

Hello,

I am sharing some scripts I wrote to help migrate from Coppermine to Piwigo. They are very crude and specific to my personal needs but someone might find it useful nonetheless.

https://github.com/th555/piwigo-to-copp … on-scripts

It is assumed your Coppermine gallery has categories with 1 level of albums inside, no nested albums.
Names are cleaned as far as was necessary for me, you have to check for yourself if all your filenames are clean (see $conf['sync_chars_regex'] in the local config) otherwise you might miss photos/albums.
I would recommend that you allow spaces in Piwigo.

- Get the "albums" folder from Coppermine
- Make an empty directory "galleries"
- Put archive.php in your main Coppermine folder and run it by visiting yourgallery.com/archive.php
- This outputs a file called `photopaths.csv`, download it to the same location as the `albums` and `galleries` folders
- Run `python makedirstruct.py`, this will move the files from the `albums` folder to subfolders in the `galleries` folder according to the structure saved in `photopaths.csv`
- Upload the contents of the `galleries` folder to the `galleries` folder in your Piwigo installation
- Import the photos using `admin->photos->add->FTP + Synchronization`


A big thank you to the Piwigo and plugin devs and anyone who posts useful information in the forums :)

Offline

 
  •  » Extensions
  •  » Scripts to migrate from Coppermine to Piwigo

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact