My understanding from reading the [ImageMagick documentation](http://www.imagemagick.org/Usage/text/#caption_bestfit) regarding text, is that the `@-` notation reads the contents of standard input.

As such, this should be a fairly straight forward way to render Hello World.

```
printf "Hello\nWorld" | 
convert \
  -size 1280x100 \
  -background '#0000FF10' \
  -density 90 \
  -gravity Center \
  -fill black \
  -font Helvetica \
  caption:@- \
  test.png

```

On OS X 10.11.5 via [HomeBrew](http://brew.sh), this works, using `convert` Version: ImageMagick 6.9.4-3 Q16 x86\_64 2016-05-20.

[![enter image description here](https://i.stack.imgur.com/WpdQa.png)](https://i.stack.imgur.com/WpdQa.png)

However on Ubuntu 16.04 LTS, the identical command does not work, using `convert` Version: ImageMagick 6.8.9-9 Q16 x86\_64 2016-06-01. In fact, it renders the stdin operator, literally.

[![enter image description here](https://i.stack.imgur.com/OCH2Y.png)](https://i.stack.imgur.com/OCH2Y.png)

The only thing I was able to find that remotely looked like this problem on Google was [this article](http://www.imagemagick.org/discourse-server/viewtopic.php?t=28501), dated back in Oct 2015 in which ImageMagick 6.9.2-5 Beta was patched to fix a similar problem.

**QUESTION**: Am I not escaping it properly, is there really a problem in ImageMagick, or is my Linux Distro picking up a historical version of ImageMagick with the bug and I need to [build from source](http://www.imagemagick.org/script/install-source.php)?

*Much Later After Many Experiments*

**SOLVED ...?** Built ImageMagick 7.0.2 from source on the Ubuntu box and the above command worked as desired. Was there a better solution?