fmw42 wrote:Did you get an output. I did not on Mac OSX with my commands above (without the -write)?
Code: Select all
echo "-size 42x42 xc:red" | magick -verbose -script - t.png
magick: UnrecognizedOption `-size 42x42 xc:red' in "stdin" at line 1,column 1 @ fatal/magick-cli.c/ProcessScriptOptions/190.
[Windows shell behaviour?]
---
Code: Select all
echo -size 42x42 xc:red | magick -verbose -script - t.png
xc:red=>red XC 42x42 42x42+0+0 16-bit sRGB 0.000u 0:00.000
No t.png created.
---
Code: Select all
magick -verbose -script script.txt t.png
xc:red=>red XC 42x42 42x42+0+0 16-bit sRGB 0.000u 0:00.000
No t.png created.
---
Magick's '-write' works well.
PS:
I do not understand the benefit of using echo rather than just putting the text into the command itself. If you have a long command and want to save it, I would put it into a text file.
Yeah, that was just for the test case. Easier to put a on-liner on the forum. I'm feeding 100kB commands now.