Will not draw undercolor with annotate

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mjurgens
Posts: 2
Joined: 2019-06-28T19:35:30-07:00
Authentication code: 1152

Will not draw undercolor with annotate

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

Re: Will not draw undercolor with annotate

Post 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.
mjurgens
Posts: 2
Joined: 2019-06-28T19:35:30-07:00
Authentication code: 1152

Re: Will not draw undercolor with annotate

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

Re: Will not draw undercolor with annotate

Post 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.
Post Reply