I do not believe that -annnotate offsets can be specified as a -set argument in IM 6. The text can be, however.
You can do this:
Code: Select all
convert logo: -set myinfo "+%[fx:w/2]+%[fx:h/2]" -fill black -gravity west -font arial -pointsize 36 -annotate +0+0 "%[myinfo]" show
But you cannot do this:
Code: Select all
convert logo: -set myinfo "+%[fx:w/2]+%[fx:h/2]" -fill black -gravity west -font arial -pointsize 36 -annotate "%[myinfo]" "%[myinfo]" show:
The same for -set option:myinfo
Similarly, when avoiding the -set and using the % calculations direction, this works:
Code: Select all
convert logo: -fill black -gravity west -font arial -pointsize 36 -annotate +0+0 "+%[fx:w/2]+%[fx:h/2]" show:
But this does not:
Code: Select all
convert logo: -fill black -gravity west -font arial -pointsize 36 -annotate "+%[fx:w/2]+%[fx:h/2]" "%wx%h" show:
But you can do these in IM 7, such as the following that does work.
Code: Select all
magick logo: -fill black -gravity northwest -font arial -pointsize 36 -annotate "+%[fx:w/8]+%[fx:h/2]" "%wx%h" show: