Filename globbing under Windows

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
whugemann
Posts: 289
Joined: 2011-03-28T07:11:31-07:00
Authentication code: 8675308
Location: Münster, Germany 52°N,7.6°E

Filename globbing under Windows

Post 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?
Wolfgang Hugemann
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Filename globbing under Windows

Post 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.
User avatar
whugemann
Posts: 289
Joined: 2011-03-28T07:11:31-07:00
Authentication code: 8675308
Location: Münster, Germany 52°N,7.6°E

Re: Filename globbing under Windows

Post 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.
Wolfgang Hugemann
Post Reply