Page 1 of 1

Filename globbing under Windows

Posted: 2013-03-09T11:41:01-07:00
by whugemann
I am trying to produce photo index prints with montage, see http://www.imagemagick.org/Usage/windows/#for_recursive

The decisive command line is something like:
montage -geometry 210x140+0+5 -tile 6x "subdirectory\*.jpg" photo_index.jpg

If the subdirctory name contains German umlauts, this code line produces an error, not only in the DOS batch file, but also when typed into a cmd box by hand. I think this used to function in former times, but I am not sure of this.

Changing the codepage to 1252, the Windows equivalent to ISO 8859-1 does not help. Any ideas or is this just a bug?

Re: Filename globbing under Windows

Posted: 2013-03-09T19:54:48-07:00
by fmw42
montage -geometry 210x140+0+5 -tile 6x "subdirectory\*.jpg" photo_index.jpg

This works for me in Unix where I have four copies of rose.tif in the directory. So I get a 2x2 montage with 5 pixels spacing.

montage -geometry +5+5 -tile 2x "/Users/fred/Rose_Test/*.tif" rose_index.jpg


Did you try the full path to the directory.

Re: Filename globbing under Windows

Posted: 2013-03-10T02:53:02-07:00
by whugemann
I think that my code is correct, as it functions for about 90% of the directory tree, except for directories whoose names contain non-ANSI characters (specifically: German umlauts).

Having thought it over for a while, I am sure that this is a fresh bug: It took me some effort to use directory names with umlauts as a title for the index prints. I succeeded by the help of iconv (Windows flavour). I must have tested the code with directories that contained umlauts about two years ago.