Re: how to get compare metric output via java/.bat file

Wolfgang Hugemann <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <[email protected]>
> The following doesn't work (myFile.txt will be empty)
> compare -metric MSE image1.png image2.png res.png > myFile.txt

The output is written to stderr instead of stdout (for what reason 
ever), thus

compare -metric MSE image1.png image2.png res.png 2> myFile.txt

will do the trick (at least on my Windows machine).

Wolfgang Hugemann
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.