Page 1 of 1

too-small pointsize chosen with best fit caption

Posted: 2018-10-02T08:17:45-07:00
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

Re: too-small pointsize chosen with best fit caption

Posted: 2018-10-02T08:19:23-07:00
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.

Re: too-small pointsize chosen with best fit caption

Posted: 2018-10-02T08:52:11-07:00
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?

Re: too-small pointsize chosen with best fit caption

Posted: 2018-10-02T10:57:47-07:00
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

Re: too-small pointsize chosen with best fit caption

Posted: 2018-10-03T09:32:40-07:00
by notsohasty
Thanks!