Page 1 of 1

possible bug caption: IM 6.7.2.7 Q16

Posted: 2011-09-20T11:25:12-07:00
by fmw42
IM 6.7.2.7 Q16 Mac OSX Tiger

I am just following up and confirming a potential issue raised at viewtopic.php?f=1&t=19501.

Although I am not sure why one would do this, but it seems that if the pointsize is too large for the specified width (ie. width is too small for pointsize), caption: for a single character will hang.

This works, though caption reduces the pointsize accordingly.

convert -size 50x -background none -font Arial -pointsize 72 -fill "#000000" -gravity west caption:"A" test1.png


However, this fails and hangs for me

convert -size 40x -background none -font Arial -pointsize 72 -fill "#000000" -gravity west caption:"A" test2.png


It would appear that IM is having trouble deciding upon an appropriate pointsize for the given width. If this cannot be fixed, then perhaps a more graceful exit and error message might be in order, if that is appropriate and possible.

Re: possible bug caption: IM 6.7.2.7 Q16

Posted: 2011-09-20T11:31:56-07:00
by magick
We can reproduce the problem and will have a patch within a day or two. Thanks.

Re: possible bug caption: IM 6.7.2.7 Q16

Posted: 2012-01-30T05:34:55-07:00
by magick
It appears to be working properly with the latest ImageMagick releases. For one, it does not hang. The letter is cut off but that is because you specified the width as fixed at 40 pixels and the pointsize fixed at 72.

Re: possible bug caption: IM 6.7.2.7 Q16

Posted: 2012-02-04T12:09:46-07:00
by fmw42
Caption: for those using Pango now seems to be working properly and not give a blank output image in IM 6.7.5.1 Q16 Mac OSX Snow Leopard.

Re: possible bug caption: IM 6.7.2.7 Q16

Posted: 2012-02-04T20:11:04-07:00
by anthony
fmw42 wrote:Caption: for those using Pango now seems to be working properly and not give a blank output image in IM 6.7.5.1 Q16 Mac OSX Snow Leopard.
See duplicate topic...
viewtopic.php?f=3&t=19868&start=15#p80591