This is why I still use Piwigo as I don't need to mess with file names and structure as far as I have seen.