Page 1 of 1

identify format isnt returning the right information

Posted: 2017-09-11T00:51:52-07:00
by theuser233
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.

Re: identify format isnt returning the right information

Posted: 2017-09-11T01:12:20-07:00
by snibgo
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