File names with multiple periods (solved)

Vashanka

Joined: 2010-09-15
Posts: 3
Posted: Wed, 2012-05-30 22:54

Thought I'd post a note about this in case it's of help to anyone else.

I am adding thousands of files to a new installation of Gallery 3. These are research images and as such have long, descriptive file names. When adding files to Gallery 3 via server add, it will ignore files with multiple periods (.) in the filename. I presume this is due to extension screening, where Gallery is looking for specific file types and ignoring others.

At first I thought this was a weird issue with filename length or directory depth, but that is not the case. For example, adding a file named:

dclay01water_200-filtered.0050.jpg

will not work, and the file gets ignored. My assumption is gallery thinks it's some kind of ".0050" file.

At this point, the only solution I'm aware of is to rename the files. You could do that locally or on the server. If you are on a Linux system with rename installed (part of util-linux-ng), at the shell you can run a little batch process within your gallery's data directories like:

# rename "." "-" *.jpg

should rename the above file to:

dclay01water_200-filtered-0050.jpg

That should clean things up nicely. Google filename character replacements and you should be able to find many other examples.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25961
Posted: Thu, 2012-05-31 00:41

There has been some recent changes to the code base that might correct that. Try an experimental version and report back.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
Vashanka

Joined: 2010-09-15
Posts: 3
Posted: Fri, 2012-06-01 00:45

No luck- I installed via git and have been doing daily pulls for some time now. I'm up to date on Gallery 3.0+ (build 236 on branch master).

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25961
Posted: Fri, 2012-06-01 03:24

OK, please file a trouble/bug ticket for that please.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments