Compare metrics export to text

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
victorzx
Posts: 10
Joined: 2018-07-23T22:51:52-07:00
Authentication code: 1152

Compare metrics export to text

Post by victorzx »

Hello,

I have two image that I want to compare suing psnr metrics

I used:

compare -metric psnr a.jpg b.png NULL, so its give me a number,

I want to export that result value to a text file so I tried

compare -metric psnr a.jpg b.png NULL >> texto.txt but its not work,

so is that possible?
IM 7.0.7 win 10
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Compare metrics export to text

Post by snibgo »

The text data is sent to stderr, not stdout, so use "2>" or "2>>".
snibgo's IM pages: im.snibgo.com
Post Reply