too-small pointsize chosen with best fit caption

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
notsohasty
Posts: 3
Joined: 2018-10-02T08:13:20-07:00
Authentication code: 1152

too-small pointsize chosen with best fit caption

Post by notsohasty »

Hi,

I've come across a glitch with best-fit captions. Sometimes the pointsize that ImageMagick chooses is too small. Here's an example command:

Code: Select all

convert -background gray -fill black -font Arvo -size 320x430 -gravity Center caption:"Probably the reason we all go so haywire at Christmas time with the endless unrestrained and often silly buying of gifts is that we don't quite know how to put our love into words." output.png
Here's what the output looks like:
Image

The problem only happens with some fonts. Any idea what could be causing the problem?

Thanks in advance for your help!

Version: Version: ImageMagick 6.9.3-6 Q16 x86_64 2016-02-28
Platform: MacOS 10.13.6
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: too-small pointsize chosen with best fit caption

Post by fmw42 »

Have you tried updating ImageMagick. It is now at 6.9.10.12. It works fine for me on IM 6.9.10.12 Q16 Mac OSX Sierra.
notsohasty
Posts: 3
Joined: 2018-10-02T08:13:20-07:00
Authentication code: 1152

Re: too-small pointsize chosen with best fit caption

Post by notsohasty »

Good idea. Currently, I've installed ImageMagick with homebrew. What's the best way to install the latest version? Best to ditch homebrew and download the tar.gz?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: too-small pointsize chosen with best fit caption

Post by fmw42 »

If Homebrew is not up to date, then if you are on High Sierra you can try the current binary for the Mac at https://imagemagick.org/script/download.php#macosx.

Alternately, you can try what I do. I install all my delegates from MacPorts and then install ImageMagick from source. See https://www.imagemagick.org/discourse-s ... =1&t=29100
notsohasty
Posts: 3
Joined: 2018-10-02T08:13:20-07:00
Authentication code: 1152

Re: too-small pointsize chosen with best fit caption

Post by notsohasty »

Thanks!
Post Reply