Bug#370309: imagemagick: support for "fixed" font is broken

2006-06-07 Thread Daniel Kobras
unblock 344152 with 370309 # 370309 is still related to 344152, but doesn't 
block a proper fix.
thanks

On Tue, Jun 06, 2006 at 09:57:01PM +0200, Steinar H. Gunderson wrote:
> Thanks for the analysis; to me, it sounds like what I really want is to make
> the default in webmagick 'Helvetica', then? After all, that's been the _real_
> default the last N years.

Either that or just use 'Courier', as it was originally intended upstream.

> (I already NMUed webmagick to use Graphics::Magick, which at least unbroke
> it, but moving it back to Image::Magick would probably be a good idea in the
> long run, now that the real problem has been uncovered.)

In my experience, Image::Magick provides you with the latest features while
Graphics::Magick is less prone to breakage. In the case of webmagick
that hasn't been updated upstream in the last four years and is
therefore unlikely to require the latest and greatest, I think it still
makes sense to stick with Graphics::Magick.

Regards,

Daniel.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#344152: Bug#370309: imagemagick: support for "fixed" font is broken

2006-06-07 Thread Steinar H. Gunderson
On Wed, Jun 07, 2006 at 05:58:38PM +0200, Daniel Kobras wrote:
> In my experience, Image::Magick provides you with the latest features while
> Graphics::Magick is less prone to breakage. In the case of webmagick
> that hasn't been updated upstream in the last four years and is
> therefore unlikely to require the latest and greatest, I think it still
> makes sense to stick with Graphics::Magick.

In that case, I'm simply letting it stay that way -- others can revert it if
they feel like it.

/* Steinar */
-- 
Homepage: http://www.sesse.net/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#370309: imagemagick: support for "fixed" font is broken

2006-06-06 Thread Steinar H. Gunderson
On Tue, Jun 06, 2006 at 02:08:20PM +0200, Daniel Kobras wrote:
> That is, now you get to see the warning message while it used to be
> ignored in previous versions. The generated label should be exactly the
> same, rendered in the default font (Helvetica). I haven't found a
> version of ImageMagick that would actually select a fixed-width font if
> you specified '-font fixed'. They all silently fell back to the default.
> It's just the warning that's new. Maybe that's just a relict from 4.x
> versions or earlier that I haven't checked. What is supported in 6.x is
> a command-line option '-family fixed' that correctly selects a
> Courier-type font. Alas, this option is implemented for some of the
> tools only (convert for example groks it, montage doesn't--that's just
> an oversight, presumably). Apart from that, ImageMagick seems to work as
> intended, and you should probably just change the command line to use
> '-font courier'.

Thanks for the analysis; to me, it sounds like what I really want is to make
the default in webmagick 'Helvetica', then? After all, that's been the _real_
default the last N years.

(I already NMUed webmagick to use Graphics::Magick, which at least unbroke
it, but moving it back to Image::Magick would probably be a good idea in the
long run, now that the real problem has been uncovered.)

/* Steinar */
-- 
Homepage: http://www.sesse.net/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#370309: imagemagick: support for "fixed" font is broken

2006-06-06 Thread Daniel Kobras
On Sun, Jun 04, 2006 at 05:58:47PM +0200, Steinar H. Gunderson wrote:
> ImageMagick's support for the "fixed" font is broken:
> 
>   trofast:~/wmtest# montage -font fixed -label '%f' *.jpg test.gif
>   montage: unable to read font `fixed'.
>   trofast:~/wmtest# montage -font courier -label '%f' *.jpg test.gif
> 
> This was introduced somewhere between 6:6.2.3.6-3 and 6:6.2.4.5-0.1,
> as downgrading imagemagick and libmagick9 to 6:6.2.3.6-3 fixes the
> problem. The machine is not running X, so I do not think this is related
> to the other font problems.

The relevant patch introduced between those versions is:

--- old-imagemagick/utilities/montage.c 2006-06-06 13:42:25.0 +0200
+++ new-imagemagick/utilities/montage.c 2006-06-06 13:42:46.0 +0200
@@ -101,7 +101,7 @@
   }
   image_info=CloneImageInfo((ImageInfo *) NULL);
   status=MontageImageCommand(image_info,argc,argv,(char **) NULL,&exception);
-  if (exception.severity >= ErrorException)
+  if (exception.severity != UndefinedException)
 CatchException(&exception);
   image_info=DestroyImageInfo(image_info);
   DestroyExceptionInfo(&exception);

That is, now you get to see the warning message while it used to be
ignored in previous versions. The generated label should be exactly the
same, rendered in the default font (Helvetica). I haven't found a
version of ImageMagick that would actually select a fixed-width font if
you specified '-font fixed'. They all silently fell back to the default.
It's just the warning that's new. Maybe that's just a relict from 4.x
versions or earlier that I haven't checked. What is supported in 6.x is
a command-line option '-family fixed' that correctly selects a
Courier-type font. Alas, this option is implemented for some of the
tools only (convert for example groks it, montage doesn't--that's just
an oversight, presumably). Apart from that, ImageMagick seems to work as
intended, and you should probably just change the command line to use
'-font courier'.

Regards,

Daniel.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#370309: imagemagick: support for "fixed" font is broken

2006-06-04 Thread Steinar H. Gunderson
Package: imagemagick
Version: 6:6.2.4.5-0.1
Severity: important

ImageMagick's support for the "fixed" font is broken:

  trofast:~/wmtest# montage -font fixed -label '%f' *.jpg test.gif
  montage: unable to read font `fixed'.
  trofast:~/wmtest# montage -font courier -label '%f' *.jpg test.gif

This was introduced somewhere between 6:6.2.3.6-3 and 6:6.2.4.5-0.1,
as downgrading imagemagick and libmagick9 to 6:6.2.3.6-3 fixes the
problem. The machine is not running X, so I do not think this is related
to the other font problems.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)

Versions of packages imagemagick depends on:
ii  libbz2-1.0   1.0.3-2 high-quality block-sorting file co
ii  libc62.3.6-7 GNU C Library: Shared libraries
ii  libdps1  6.8.2.dfsg.1-11 Display PostScript (DPS) client li
ii  libfreetype6 2.2.1-2 FreeType 2 font engine, shared lib
ii  libice6  6.9.0.dfsg.1-6  Inter-Client Exchange library
ii  libjasper-1.701-11.701.0-2   The JasPer JPEG-2000 runtime libra
ii  libjpeg626b-13   The Independent JPEG Group's JPEG 
ii  liblcms1 1.15-1  Color management library
ii  libmagick9   6:6.2.4.5-0.1   Image manipulation library
ii  libpng12-0   1.2.8rel-5.1PNG library - runtime
ii  libsm6   6.9.0.dfsg.1-6  X Window System Session Management
ii  libtiff4 3.8.2-2 Tag Image File Format (TIFF) libra
ii  libx11-6 6.9.0.dfsg.1-6  X Window System protocol client li
ii  libxext6 6.9.0.dfsg.1-6  X Window System miscellaneous exte
ii  libxml2  2.6.24.dfsg-1   GNOME XML library
ii  libxt6   6.9.0.dfsg.1-6  X Toolkit Intrinsics
ii  xlibs6.9.0.dfsg.1-6  X Window System client libraries m
ii  zlib1g   1:1.2.3-11  compression library - runtime

imagemagick recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]