Page 1 of 1

Will not draw undercolor with annotate

Posted: 2019-06-28T19:49:06-07:00
by mjurgens
I cannot get annotate to place an undercolor. I used to have this working, maybe a year ago, but now it does not work.
convert logo: -fill gray -undercolor blue -pointsize 50 -stroke black -gravity South -annotate +0+10 ' TEST ' output.jpg
This uses the built-in logo, writes the text in the correct place but does not draw the undercolor.
It seems to work as though it totally ignore the undercolor parameter as though I was running
convert logo: -fill gray -pointsize 50 -stroke black -gravity South -annotate +0+10 ' TEST ' output.jpg

This is v6.9.10.28 on Fedora 30.

As a side note, I also used to use -polaroid which also no longer works - it will not write any text. I don't know if this is related but is not the primary concern of this post.

Any ideas?

Re: Will not draw undercolor with annotate

Posted: 2019-06-28T20:29:03-07:00
by fmw42
This works fine for me on IM 6.9.10.50, the current version and also on IM 6.9.10.28 Mac OSX Sierra.

Code: Select all

convert logo: -fill gray -pointsize 50 -stroke black -undercolor pink -gravity South -annotate +0+10 ' TEST ' output.jpg

Your version of ImageMagick is rather old. You should upgrade. What is the version date on your version. Linux distributions often patch but do not change the version number. Also they often only patch for security fixes, so bug fix might have been ignored.

Re: Will not draw undercolor with annotate

Posted: 2019-06-28T21:36:56-07:00
by mjurgens
Ok, good call on the version.
convert --version reports: Version: ImageMagick 6.9.9-38 Q16 x86_64 2018-03-12 http://www.imagemagick.org

Anyway, I tried this on a Ubuntu 18.04 machine
convert --version reports:Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org

So with an older version on the Ubuntu box, it works. Looks like a regression bug which may have been addressed in 6.9.10.50

Re: Will not draw undercolor with annotate

Posted: 2019-06-28T22:10:19-07:00
by fmw42
Glad to hear that you got a version that worked. As I said before, Linux distributions are not that good at patching. They would be better off replacing with proper versions. It was not a reversion, since it worked fine with your version on my Mac. So it would appear to me to be a bad patch.