Montage Label with Wildcard - .bat script

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
tuggleg
Posts: 16
Joined: 2017-05-01T08:57:40-07:00
Authentication code: 1151

Montage Label with Wildcard - .bat script

Post by tuggleg »

Hello all,
I am having difficulties creating a simple montage .bat script with labels and wildcard.

Code: Select all

montage -label '%f' -pointsize 100 *.jpg -tile x1 -geometry +2+2  MAIN.jpg
Due to the wildcard (*.jpg) all images in the montage are labeled 'f'. Has anyone found a way around this?


*edit was made on title
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Montage Label with Wildcard - .bat script

Post by snibgo »

In BAT scripts, % has a special meaning (script parameters). To avoid the special meaning, you need to double them: %%f.
snibgo's IM pages: im.snibgo.com
tuggleg
Posts: 16
Joined: 2017-05-01T08:57:40-07:00
Authentication code: 1151

Re: Montage Label with Wildcard - .bat script

Post by tuggleg »

Great - this works. Thanks @snibgo
Post Reply