identify format isnt returning the right information

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
theuser233
Posts: 1
Joined: 2017-09-11T00:47:30-07:00
Authentication code: 1151

identify format isnt returning the right information

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: identify format isnt returning the right information

Post 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
snibgo's IM pages: im.snibgo.com
Post Reply