Rename option to remove or substitute non-legal piwigo characters
Dougie Nisbet
dougie at katsura.uk
Sat Jan 18 13:49:47 GMT 2025
I've been experimenting with piwigo and created a few test albums. I
quite like it. There are two options to populating albums:
1. Use the Export to piwigo option.
2. Use ftp/rsync/etc to copy files directly to piwigo.
Although 1 appears to work ok, and has the benefit of appearing to
rename photos on-the-fly to something neutral and piwigo legal, I prefer
generally to manage files myself using rsync, scp, ssh etc. However
piwigo has quite strict limitations on legal filenames (no spaces or
special characters, hyphen, underscore or periods only.)
My normal rename recipe in digikam is:
[date:ddd dMMMyyyy_hhmmss]_[db:TagsList]{replace:",","-"}{unique}
which is generally ok, and with a bit of tweaking,
[date:ddddMMMyyyy_hhmmss]_[db:TagsList]{replace:",","-"}{replace:"
",""}{unique}
I can remove white-space too. However this doesn't help with foreign
characters. For example, I have a lot of photos of Tallinn from August
last year such as:
Wed 28Aug2024 123603_Eesti - Harju maakond - Tallinn -
Põhja-Tallinna linnaosa - Vesilennuki_15.jpg
Thu 29Aug2024 112759_Eesti - Harju maakond - Tallinn - Haabersti
linnaosa - Vabaõhumuuseumi tee_43.jpg
etc ...
and I'm wondering whether it's possible, either in digikam or using a
Linux utility, to create piwigo safe filenames.
https://github.com/dharple/detox looks interesting although I haven't
tried it yet.
Dougie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20250118/df73589b/attachment.htm>
More information about the Digikam-users
mailing list