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?".
theuser233
Posts: 1 Joined: 2017-09-11T00:47:30-07:00
Authentication code: 1151
Post
by theuser233 » 2017-09-11T00:51:52-07:00
Hello guys,
I'm using IM7 and for testing purposes want to return the title of the image via identify -format on windows in a batch file using this line of code
Code: Select all
magick identify -format "%t" index.jpg
but instead of the imagetitle, its just returning "t" as a string.
snibgo
Posts: 12159 Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK
Post
by snibgo » 2017-09-11T01:12:20-07:00
In Windows BAT files, the percent character "%" has a special meaning. When you don't want that meaning, you escape it by putting it twice:
Code: Select all
magick identify -format "%%t" index.jpg