annotate parameter needs "magick convert" not only "magick" for some order

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
willemijns2
Posts: 15
Joined: 2018-10-02T05:10:24-07:00
Authentication code: 1152

annotate parameter needs "magick convert" not only "magick" for some order

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: annotate parameter needs "magick convert" not only "magick" for some order

Post 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
willemijns2
Posts: 15
Joined: 2018-10-02T05:10:24-07:00
Authentication code: 1152

Re: annotate parameter needs "magick convert" not only "magick" for some order

Post 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 IMWhatheverVersion is not so logical....

i wrote that only as a FYI information to indicate the error message ;)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: annotate parameter needs "magick convert" not only "magick" for some order

Post 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.
willemijns2
Posts: 15
Joined: 2018-10-02T05:10:24-07:00
Authentication code: 1152

Re: annotate parameter needs "magick convert" not only "magick" for some order

Post by willemijns2 »

I simplified the syntax here ;)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: annotate parameter needs "magick convert" not only "magick" for some order

Post 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.
willemijns2
Posts: 15
Joined: 2018-10-02T05:10:24-07:00
Authentication code: 1152

Re: annotate parameter needs "magick convert" not only "magick" for some order

Post 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 ;)
Post Reply