[Bug 1074181] [NEW] Version 6.6.9 (the one in 12.04) has nasty bug in caption operator word-wrapping - truncates the text

Peter Levi 1074181 at bugs.launchpad.net
Thu Nov 1 22:54:00 UTC 2012


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
Foundations Bugs, which is subscribed to imagemagick in 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

Status in “imagemagick” package in Ubuntu:
  New

Bug description:
  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).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1074181/+subscriptions




More information about the foundations-bugs mailing list