Page 1 of 1
annotate parameter needs "magick convert" not only "magick" for some order
Posted: 2019-09-15T14:02:38-07:00
by willemijns2
Hello,
always on the windows build 7-8-0-64...
magick -size 2480x3508 xc:white emptypage.png
...works
magick -size 2480x3508 -annotate +120+120 "Hello World" xc:white emptypage.png
...crashes ! i need to add "convert" word
magick convert -size 2480x3508 -annotate +120+120 "Hello World" xc:white emptypage.png
...to works well
OR
placing annotate action -after- the empty page creation like...
magick convert -size 2480x3508 xc:white -annotate +120+120 "Hello World" emptypage.png
...to be ok.
Re: annotate parameter needs "magick convert" not only "magick" for some order
Posted: 2019-09-15T14:09:14-07:00
by fmw42
-size 2480x3508 needs an image to work on. Annotate does not create one. It just adds to an existing one. Move you xc:white right after -size 2480x3508. IM 7 is more picky about syntax order than IM 6. Use Magick only, not magick convert, even if it works. That may invoke IM 6 behavior if you add convert after magick.
see
https://imagemagick.org/script/porting.php#cli
Re: annotate parameter needs "magick convert" not only "magick" for some order
Posted: 2019-09-15T14:21:47-07:00
by willemijns2
fmw42 wrote: ↑2019-09-15T14:09:14-07:00
Use Magick only, not magick convert, even if it works. That may invoke IM 6 behavior
Adding IM6 back compatibility on a IM
WhatheverVersion is not so logical....
i wrote that only as a FYI information to indicate the error message
Re: annotate parameter needs "magick convert" not only "magick" for some order
Posted: 2019-09-15T16:30:35-07:00
by fmw42
Please fix your syntax and test again. The following should work fine. If it does not, then let us know.
Code: Select all
magick -size 2480x3508 xc:white -annotate +120+120 "Hello World" emptypage.png
However, you have not specified a font or pointsize. Thus you may not see the text you wrote very well. But it should not crash.
Re: annotate parameter needs "magick convert" not only "magick" for some order
Posted: 2019-09-15T20:40:03-07:00
by willemijns2
I simplified the syntax here
Re: annotate parameter needs "magick convert" not only "magick" for some order
Posted: 2019-09-15T20:45:25-07:00
by fmw42
willemijns2 wrote: ↑2019-09-15T20:40:03-07:00
I simplified the syntax here
I do not understand what you simplified! Did my command work? If not then post your exact command.
Re: annotate parameter needs "magick convert" not only "magick" for some order
Posted: 2019-09-16T09:13:45-07:00
by willemijns2
I did not indicate font or pointsize on my script here but i had these values on my original script on my harddisk