About output return in cmdline

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
adil@alfasoft.ro
Posts: 24
Joined: 2012-01-10T05:19:23-07:00
Authentication code: 8675308

About output return in cmdline

Post by adil@alfasoft.ro »

Hello,

Does anybody know if something changed after 6.8.4 version (wich I used until now)regarding multiple
' -format "%@" -write info: "
in a single command?

On the older version the output was an array , in newer version 6.9.0 (the only I checked) there is also an array but with only one element and all the "info" results inside this element.
Example:
IM 6.8.4
["1000x1+1+1"]
["1000x1+1+1"]

IM 6.9.0 same command
["1000x1+1+11000x1+1+1"]


Thank you.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: About output return in cmdline

Post by snibgo »

Some time ago, probably around then, the trailing '\n' was removed from formats. If you want one, you need to put it in yourself.

Code: Select all

-format "%@\n"
snibgo's IM pages: im.snibgo.com
adil@alfasoft.ro
Posts: 24
Joined: 2012-01-10T05:19:23-07:00
Authentication code: 8675308

Re: About output return in cmdline

Post by adil@alfasoft.ro »

So "\n" is no more used, right?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: About output return in cmdline

Post by snibgo »

If you want "\n", you need to put it in yourself.
snibgo's IM pages: im.snibgo.com
Post Reply