Public bug reported: The version of ImageMagick in Ubuntu 12.04 LTS - 6.6.9-7 - has a very nasty bug in the caption operator, which makes it practically unusable in many cases. Most times it would fail to properly word-wrap the text and would truncate it by drawing off the canvas.
Here is a command to reproduce it: convert logo: -scale 1600x1000 \( -size 1100x -pointsize 50 -background transparent -fill '#FFFFFF' -font Ubuntu-Light -gravity West caption:"\"I may be drunk, Miss, but in the morning I will be sober and you will still be ugly.\" I will try to cause caption wrapping to fail by adding some more text here. Some more text here. A loooooooooooooooooooooooong word. END." -gravity East caption:'- Winston Churchill' -bordercolor '#88888888' -border 50x10 -append \) -gravity East -geometry +0-150 -composite result.jpg It truncates differently depending on the font, pointsize, and size parameters, and with some combinations it succeeds (rarely for long texts). It fails more often than not. I tried latest version 0.6.8-4 and it doesn't have the problem. I don't know the exact version in which it has been fixed. See the attached to see the buggy and the expected output. Some upstream reports about the bug: http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=18830 http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=18704 I'm writing an application which depends on ImageMagick and this problem blocks me on implementing some of the features (specifically https://bugs.launchpad.net/variety/+bug/1036140). ** Affects: imagemagick (Ubuntu) Importance: Undecided Status: New ** Tags: 12.04 caption ** Attachment added: "Incorrect result with ImageMagick 6.6.9-7" https://bugs.launchpad.net/bugs/1074181/+attachment/3421163/+files/bad_result_6.6.9.jpg -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1074181 Title: Version 6.6.9 (the one in 12.04) has nasty bug in caption operator word-wrapping - truncates the text To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1074181/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
