compare no longer terminates output with \n

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

compare no longer terminates output with \n

Post by broucaries »

User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: compare no longer terminates output with \n

Post by magick »

At some point, the developers decided that the default output of the command line tools would be for consumption by other programs or scripts-- and any command with the -verbose option would be for human consumption. As a result, non-verbose command-line program output does not include a newline. For the -format option, you can insert a newline with \n but unfortunately you cannot with the compare program other than returning verbose info.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: compare no longer terminates output with \n

Post by snibgo »

I'll mention that if you want an added newline, you can have it:

Code: Select all

compare -format "\n" -metric RMSE rose: rose: NULL
snibgo's IM pages: im.snibgo.com
Post Reply