possible bug caption: IM 6.7.2.7 Q16

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

possible bug caption: IM 6.7.2.7 Q16

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug caption: IM 6.7.2.7 Q16

Post by magick »

We can reproduce the problem and will have a patch within a day or two. Thanks.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug caption: IM 6.7.2.7 Q16

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

Re: possible bug caption: IM 6.7.2.7 Q16

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: possible bug caption: IM 6.7.2.7 Q16

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Locked