Page 1 of 1

`mogrify` unable to draw text?

Posted: 2016-03-12T10:47:36-07:00
by jamadagni
Hello. I'm using IM 6.7.7-10 which comes with Kubuntu Trusty 64 bit. Please see the following commands entered at a terminal:

Code: Select all

convert xc:black -resize 1000x600! black.png
mogrify black.png -fill white -stroke blue -font DejaVu-Sans-Book -pointsize 36 -draw 'gravity NorthEast text 0,0 "Hello"'
convert black.png -fill white -stroke blue -font DejaVu-Sans-Book -pointsize 36 -draw 'gravity SouthEast text 0,0 "World"' black-new.png
I find that the final file black-new.png only contains the word World at the bottom right and does not contain the word Hello anywhere. Isn't mogrify supposed to do anything that convert does except that it operates in place?

Re: `mogrify` unable to draw text?

Posted: 2016-03-12T10:57:26-07:00
by snibgo
1. convert can do many things that mogrify can't.

2. Your syntax for mogrify is wrong. The filename should go at the end. With that correction, v6.9.2-5 gives the required result.

Re: `mogrify` unable to draw text?

Posted: 2016-03-12T11:39:50-07:00
by jamadagni
Thank you very much. I should have checked the man page first. Indeed if I put the file name at the end it works.