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.
possible bug caption: IM 6.7.2.7 Q16
Re: possible bug caption: IM 6.7.2.7 Q16
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
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.
- 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
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.
- 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
See duplicate topic...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.
viewtopic.php?f=3&t=19868&start=15#p80591
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/