magick indentify results piped to txt file

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
rmburt
Posts: 2
Joined: 2016-11-30T12:27:07-07:00
Authentication code: 1151

magick indentify results piped to txt file

Post by rmburt »

I am using the magick identify {filename} to determine if some jpg are damaged. The results go to the screen. How can I get it to a text file.
I added >> c:\txt.txt but that didn't seem to work.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: magick indentify results piped to txt file

Post by snibgo »

It works fine for me:

Code: Select all

magick identify -verbose rose: >x.txt
snibgo's IM pages: im.snibgo.com
rmburt
Posts: 2
Joined: 2016-11-30T12:27:07-07:00
Authentication code: 1151

Re: magick indentify results piped to txt file

Post by rmburt »

Actually, if the file is damaged is show as an error, so its magick identify -verbose [filename] > t.txt 2>&1
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: magick indentify results piped to txt file

Post by snibgo »

Yes, that will also send stderr to the text file. Do you still have a question?
snibgo's IM pages: im.snibgo.com
Post Reply