Announcement

  •  » Extensions
  •  » Another Gallery Successfully moved from Menalto to Piwigo

#1 2020-02-01 05:35:31

damon18
Member
Memphis, TN USA
2015-10-28
19

Another Gallery Successfully moved from Menalto to Piwigo

Hi All,

Just reporting in and thanking the Piwigo core and plugin developers for their work. Was glad to donate to the recent fundraiser recently but I know folks working on open source never get enough thanks.

So Thank You!

I was able to move another very old Menalto 2 gallery with 40 albums and 1,200 photos over to Piwigo. I'd link to it but it's still on a staging server.

The only problem I've had on the Menalto 2 Galleries that I've moved is the fact that they all seem to have file and directory names with spaces, causing errors when you do the Synchronize step in menalto2piwigo plugin.

This time I got rid of spaces and converted them to underscores in both folder and image names by using this from the command line.

Code:

find -name "* *" -print0 | sort -rz | \
  while read -d $'\0' f; do mv -v "$f" "$(dirname "$f")/$(basename "${f// /_}")"; done

Credit goes to chaos on Stackexchange
https://unix.stackexchange.com/question … -shell-scr

That command converted all the file names recursively in one go with no errors.

Piwigo 2.10.1 Check for upgrade
Operating system: Linux
PHP: 7.3.13 (Show info) [2020-02-01 04:25:45]
MySQL: 5.7.25-log [2020-01-31 22:25:45]
Graphics Library: ImageMagick 6.7.2-7

Offline

 
  •  » Extensions
  •  » Another Gallery Successfully moved from Menalto to Piwigo

Board footer

Powered by FluxBB

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