Bug#680927: Imagemagick convert caption wrapping

2012-07-09 Thread Matt Cockayne
Package: Imagemagick
Version: 8:6.6.9.7-7
Severity: important

Debian Squeeze 6.0.5
Kernel 2.6.32-5-amd64

Issue: When using the convert binary using the --caption flag the text does
not wrap/resize correctly when restricting the image dimensions and not
specifying a pointsize. This is causing incorrect output in production env


Bug#680928: Imagmagick convert UTF8 non breaking space

2012-07-09 Thread Matt Cockayne
Package: Imagemagick
Version: 8:6.6.0.4-3+squeeze3
Severity: critical

Debian Squeeze 6.0.5
Kernel 2.6.32-5-amd64

Issue: When using the convert binary with the --caption flag, if the text
to be used contains a UTF-8 non-breaking space the convert binary then
enters into a loop and cannot finish. This then consumes CPU usage causing
a loss of perfomance.


Bug#680927: [Pkg-gmagick-im-team] Bug#680927: Imagemagick convert caption wrapping

2012-07-09 Thread Matt Cockayne
Hi Bastien,

This issue is loosely releted to #680928.

The version (6.6.9) for this ticket was compiled by the Sys Admin managing
the servers directly from source in the Debian testing branch at the time
if investigation of the issues in ticket #680928.

The command used is similar to that used in #680928 except uses long
strings for the caption



On Mon, Jul 9, 2012 at 1:03 PM, roucaries bastien 
roucaries.bastien+deb...@gmail.com wrote:

 tags 680927 + moreinfo
 tags 680927 + unreproducible
 thanks

 On Mon, Jul 9, 2012 at 12:11 PM, Matt Cockayne m...@zucchi.co.uk wrote:
  Package: Imagemagick
  Version: 8:6.6.9.7-7
  Severity: important
 
  Debian Squeeze 6.0.5
  Kernel 2.6.32-5-amd64
 
  Issue: When using the convert binary using the --caption flag the text
 does
  not wrap/resize correctly when restricting the image dimensions and not
  specifying a pointsize. This is causing incorrect output in production
 env

 thanks for this bug report.

 Unofrtunatly you do not give the exact command line, and moreover the
 version you give me is neither part of stable/testing/unstable.

 Bastien

 
  ___
  Pkg-gmagick-im-team mailing list
  pkg-gmagick-im-t...@lists.alioth.debian.org
 
 http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-gmagick-im-team




-- 
Matt Cockayne

*Zucchi ! Digital Perfection*
Managing Director

*e:* m...@zucchi.co.uk
*t:* +44 (0) 161 435 6060
*m:* +44 (0) 843 557 1751
*w:* zucchi.co.uk
*a:* 26 Avon Rd / Cheadle / Cheshire / SK8 3LS

*sk:* matt.cockayne
*tw:* @mattcockayne http://twitter.com/#!/mattcockayne
*in:* matthewcockayne http://www.linkedin.com/in/matthewcockayne

Click for Email Disclaimer http://zucchi.co.uk/legals/email-disclaimer


Bug#680928: [Pkg-gmagick-im-team] Bug#680928: Imagmagick convert UTF8 non breaking space

2012-07-09 Thread Matt Cockayne
An example of the command executed is (less UTF8 nonbreaking space as may
not translate across email)

usr/bin/convert -size 160 -pointsize 19 -channel RGBA -fill rgb(0,0,116)
-weight 400 -font /site/data/fonts/Ampersand.ttf -gravity NorthWest
-background none caption:'Name, saw this and thought of you! Cheers Name'
-flatten /site/data/tmp/1341835864.3593.png

output of convert --version

Version: ImageMagick 6.6.0-4 2012-05-02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP

We have tested with a number of different versions in a sandbox
environment... this exact issue resolves itself by 6.6.9 but others issues
are present see bug #680927. both issues are resolved by version 6.7.x



On Mon, Jul 9, 2012 at 1:01 PM, roucaries bastien 
roucaries.bastien+deb...@gmail.com wrote:

 tags 680928 + unrreproducible
 tags  680928 + moreinfo
 severity  680928 important
 thanks

 On Mon, Jul 9, 2012 at 12:11 PM, Matt Cockayne m...@zucchi.co.uk wrote:
  Package: Imagemagick
  Version: 8:6.6.0.4-3+squeeze3
  Severity: critical
 
  Debian Squeeze 6.0.5
  Kernel 2.6.32-5-amd64
 
  Issue: When using the convert binary with the --caption flag, if the
 text to
  be used contains a UTF-8 non-breaking space the convert binary then
 enters
  into a loop and cannot finish. This then consumes CPU usage causing a
 loss
  of perfomance.

 Could you give me the exact command line ? And the output of convert
 --version

 BTW could you test with newer version ?

 Set to important because I could not reproduce, and you do not give
 affected version.

 Bastien

 
  ___
  Pkg-gmagick-im-team mailing list
  pkg-gmagick-im-t...@lists.alioth.debian.org
 
 http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-gmagick-im-team




-- 
Matt Cockayne

*Zucchi ! Digital Perfection*
Managing Director

*e:* m...@zucchi.co.uk
*t:* +44 (0) 161 435 6060
*m:* +44 (0) 843 557 1751
*w:* zucchi.co.uk
*a:* 26 Avon Rd / Cheadle / Cheshire / SK8 3LS

*sk:* matt.cockayne
*tw:* @mattcockayne http://twitter.com/#!/mattcockayne
*in:* matthewcockayne http://www.linkedin.com/in/matthewcockayne

Click for Email Disclaimer http://zucchi.co.uk/legals/email-disclaimer


Bug#680928: [Pkg-gmagick-im-team] Bug#680928: Imagmagick convert UTF8 non breaking space

2012-07-09 Thread Matt Cockayne
Hi Bastien,

We have tried this previously but I have retested and the problem still
persists.

We identified the exact issue as being resolved by a patch applied in
version  2010-03-18 6.6.0-8.

Matt




On Mon, Jul 9, 2012 at 1:29 PM, roucaries bastien 
roucaries.bastien+deb...@gmail.com wrote:

 On Mon, Jul 9, 2012 at 2:17 PM, Matt Cockayne m...@zucchi.co.uk wrote:
  An example of the command executed is (less UTF8 nonbreaking space as may
  not translate across email)
 
  usr/bin/convert -size 160 -pointsize 19 -channel RGBA -fill
 rgb(0,0,116)
  -weight 400 -font /site/data/fonts/Ampersand.ttf -gravity NorthWest
  -background none caption:'Name, saw this and thought of you! Cheers Name'
  -flatten /site/data/tmp/1341835864.3593.png

 Could you try this command line on affected version ?

 convert -size 160 -pointsize 19 -channel RGBA -fill rgb(0,0,116)
 -weight 400  -gravity NorthWest -background none caption:'Name, saw
 this and thought of you! Cheers Name' -flatten show:

 If it give the expected bad version, could you report me.

 If it is bad I will send a report to security in order to get a dsa and so
 on.

 Thanks

 Bastien




-- 
Matt Cockayne

*Zucchi ! Digital Perfection*
Managing Director

*e:* m...@zucchi.co.uk
*t:* +44 (0) 161 435 6060
*m:* +44 (0) 843 557 1751
*w:* zucchi.co.uk
*a:* 26 Avon Rd / Cheadle / Cheshire / SK8 3LS

*sk:* matt.cockayne
*tw:* @mattcockayne http://twitter.com/#!/mattcockayne
*in:* matthewcockayne http://www.linkedin.com/in/matthewcockayne

Click for Email Disclaimer http://zucchi.co.uk/legals/email-disclaimer


Bug#680928: [Pkg-gmagick-im-team] Bug#680928: Imagmagick convert UTF8 non breaking space

2012-07-09 Thread Matt Cockayne
The source of the fix is not specified as a specific patch file. And I am
unable to identify the exact fix implemented

Looking at the changelog and the dates/versions involved I would ascertain
that the fix was applied somewhere between commits

1497 - 1503

http://trac.imagemagick.org/timeline?from=03%2F18%2F10daysback=0authors=milestone=onticket=onchangeset=onwiki=onupdate=Update



On Mon, Jul 9, 2012 at 2:45 PM, roucaries bastien 
roucaries.bastien+deb...@gmail.com wrote:

 On Mon, Jul 9, 2012 at 2:55 PM, Matt Cockayne m...@zucchi.co.uk wrote:
  Hi Bastien,
 
  We have tried this previously but I have retested and the problem still
  persists.
 
  We identified the exact issue as being resolved by a patch applied in
  version  2010-03-18 6.6.0-8.

 Could you send here, the patch with svn revision ?

 Bastien

  Matt
 
 
 
 
  On Mon, Jul 9, 2012 at 1:29 PM, roucaries bastien
  roucaries.bastien+deb...@gmail.com wrote:
 
  On Mon, Jul 9, 2012 at 2:17 PM, Matt Cockayne m...@zucchi.co.uk
 wrote:
   An example of the command executed is (less UTF8 nonbreaking space as
   may
   not translate across email)
  
   usr/bin/convert -size 160 -pointsize 19 -channel RGBA -fill
   rgb(0,0,116)
   -weight 400 -font /site/data/fonts/Ampersand.ttf -gravity NorthWest
   -background none caption:'Name, saw this and thought of you! Cheers
   Name'
   -flatten /site/data/tmp/1341835864.3593.png
 
  Could you try this command line on affected version ?
 
  convert -size 160 -pointsize 19 -channel RGBA -fill rgb(0,0,116)
  -weight 400  -gravity NorthWest -background none caption:'Name, saw
  this and thought of you! Cheers Name' -flatten show:
 
  If it give the expected bad version, could you report me.
 
  If it is bad I will send a report to security in order to get a dsa and
 so
  on.
 
  Thanks
 
  Bastien



Bug#680928: [Pkg-gmagick-im-team] Bug#680928: Imagmagick convert UTF8 non breaking space

2012-07-09 Thread Matt Cockayne
Unfortunatly we are not experienced enough with imagemagicks source to be
able to identify where the fix may have occured.

All we are able to advise can advise is what appears to be in the changelog
and that in testing versions subsequent to 6.6.0-8 appears to be working
correctly.

Quote

2010-03-18 6.6.0-8 Cristy quetzlzacatenango@image...
  The animate program no longer loops twice when -loop 1 is specified.
  The caption format would sometimes hang when the text was not UTF-8.
  Don't gamma correct log to linear color conversion unless the -gamma
is specified (reference http://www.imagemagick.org/discourse-
server/viewtopic.php?f=1t=15799).

/Quote

On Mon, Jul 9, 2012 at 3:17 PM, roucaries bastien 
roucaries.bastien+deb...@gmail.com wrote:

 On Mon, Jul 9, 2012 at 4:13 PM, Matt Cockayne m...@zucchi.co.uk wrote:
  The source of the fix is not specified as a specific patch file. And I am
  unable to identify the exact fix implemented
 
  Looking at the changelog and the dates/versions involved I would
 ascertain
  that the fix was applied somewhere between commits
 
  1497 - 1503
 
 
 http://trac.imagemagick.org/timeline?from=03%2F18%2F10daysback=0authors=milestone=onticket=onchangeset=onwiki=onupdate=Update
 

 Unfortunatly no change has action on utf8. only animate and some exotic
 coders.

 Bastien




-- 
Matt Cockayne

*Zucchi ! Digital Perfection*
Managing Director

*e:* m...@zucchi.co.uk
*t:* +44 (0) 161 435 6060
*m:* +44 (0) 843 557 1751
*w:* zucchi.co.uk
*a:* 26 Avon Rd / Cheadle / Cheshire / SK8 3LS

*sk:* matt.cockayne
*tw:* @mattcockayne http://twitter.com/#!/mattcockayne
*in:* matthewcockayne http://www.linkedin.com/in/matthewcockayne

Click for Email Disclaimer http://zucchi.co.uk/legals/email-disclaimer