Re: spaces and annotations in filenames
Posted: 2018-02-21T20:47:56-07:00
Ideally, IM would have a setting that meant: "Ignore special characters in filenames." But it doesn't, so including characters like ":[]" in filenames creates ambiguity, which is a bad idea. For example:
Is this a file named "abc.tiff" with a "TIFF:" prefix, or is it a file named "TIFF:abc.tiff" with no prefix?
IM takes a dual approach, searching for both filenames.
The same problem occurs with square brackets:
This might be a file named "abc.tiff" with an added suffix, or "abc.tiff[0]" with no suffix. (".tiff[0]" is a valid extension on Windows).
Again, IM will actually search for both.
But that is a total of four combinations, and IM won't search for all four. That's why a colon in the name, with square brackets not in the name, won't be found.
If a workflow accepts colons in filenames, then there might be two different files:
Suppose a convert command refers to "TIFF:abc.tiff". Which of those files should be used? Doubtless we could figure out which one IM will use, but it clearly causes confusion.
In my view, the best way to avoid the confusion is to have a workflow that prohibits any of ":[]" in filenames.
Code: Select all
TIFF:abc.tiff
IM takes a dual approach, searching for both filenames.
The same problem occurs with square brackets:
Code: Select all
abc.tiff[0]
Again, IM will actually search for both.
But that is a total of four combinations, and IM won't search for all four. That's why a colon in the name, with square brackets not in the name, won't be found.
If a workflow accepts colons in filenames, then there might be two different files:
Code: Select all
abc.tiff
TIFF:abc.tiff
In my view, the best way to avoid the confusion is to have a workflow that prohibits any of ":[]" in filenames.