Bug#585414: imagemagick: convert: Converting TIFF to XPM fails

2010-06-10 Thread Yavor Doganov
Package: imagemagick
Version: 7:6.6.0.4-2
Severity: normal
File: /usr/bin/convert

I am adopting batmon.app for the GNUstep team, and trying to convert the
application's TIFF icon to XPM (for the benefit of debian/menu).  The
command in the build-stamp rule is the following (almost identical in
all GNUstep packages where TIFF images are used exclusively):

convert Resources/Batmon_icon.tif -resize 32x32 batmon.xpm

When building the debian package, the error message is:

make[1]: Leaving directory `/tmp/buildd/batmon.app-0.5'
convert Resources/Batmon_icon.tif -resize 32x32 batmon.xpm
convert: unable to open image `Resources/Batmon_icon.tif': 
/usr/lib/ImageMagick-6.6.0/modules-Q16/coders/tiff.la @ 
error/blob.c/OpenBlob/2489.
convert: unable to open image `Resources/Batmon_icon.tif':  @ 
error/blob.c/OpenBlob/2489.
convert: missing an image filename `batmon.xpm' @ 
error/convert.c/ConvertImageCommand/2940.
make: *** [build-stamp] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Confusingly, if I run the command manually in a terminal, it is
different:

convert: Resources/BatMon_icon.tif: unknown field with tag 37724 (0x935c) 
encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/703.

I tried opening the problematic file (herewith attached) in some image
viewers available in Debian (emacs23, preview.app, eog, to name a few)
and they display the image without any problem.  It looks like it was
created with a proprietary program (what a shame!), but otherwise it
doesn't seem natural to me the `convert' program to refuse to convert
it if generic image viewers are able to dipslay the image...

Is this an invalid TIFF file?  Is this a bug in imagemagick and if so,
how can I workaround it?  I am not familiar with your package at all,
and these are among the most cryptic error messages I've ever seen :-(.

Thanks in advance.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages imagemagick depends on:
ii  libbz2-1.0  1.0.5-4  high-quality block-sorting file co
ii  libc6   2.11.1-3 Embedded GNU C Library: Shared lib
ii  libfontconfig1  2.8.0-2.1generic font configuration library
ii  libfreetype62.3.11-1 FreeType 2 font engine, shared lib
ii  libglib2.0-02.24.1-1 The GLib library of C routines
ii  libgomp14.4.4-4  GCC OpenMP (GOMP) support library
ii  libice6 2:1.0.6-1X11 Inter-Client Exchange library
ii  libjpeg62   6b-16.1  The Independent JPEG Group's JPEG 
ii  liblcms11.18.dfsg-1.2+b1 Color management library
ii  liblqr-1-0  0.4.1-1  converts plain array images into m
ii  libltdl72.2.6b-2 A system independent dlopen wrappe
ii  libmagickcore3  7:6.6.0.4-2  low-level image manipulation libra
ii  libmagickwand3  7:6.6.0.4-2  image manipulation library
ii  libsm6  2:1.1.1-1X11 Session Management library
ii  libtiff43.9.2-3+b1   Tag Image File Format (TIFF) libra
ii  libx11-62:1.3.3-3X11 client-side library
ii  libxext62:1.1.1-3X11 miscellaneous extension librar
ii  libxt6  1:1.0.7-1X11 toolkit intrinsics library
ii  zlib1g  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages imagemagick recommends:
ii  ghostscript 8.71~dfsg2-3 The GPL Ghostscript PostScript/PDF
ii  libmagickcore3-extr 7:6.6.0.4-2  low-level image manipulation libra
ii  netpbm  2:10.0-12.1+squeeze1 Graphics conversion tools between 
ii  ufraw   0.16-3   standalone importer for raw camera

Versions of packages imagemagick suggests:
pn  autotracenone  (no description available)
pn  cups-bsd | lpr | lpr none  (no description available)
ii  curl 7.20.1-2Get a file from an HTTP, HTTPS or 
pn  enscript none  (no description available)
pn  ffmpeg   none  (no description available)
ii  gimp 2.6.8-3 The GNU Image Manipulation Program
ii  gnuplot  4.4.0-1 A command-line driven interactive 
pn  gradsnone  (no description available)
ii  groff-base   1.20.1-10   GNU troff text-formatting system (
pn  hp2xxnone  (no description available)
pn  html2ps  none  (no description available)
pn  imagemagick-doc  none  (no description 

Bug#585414: imagemagick: convert: Converting TIFF to XPM fails

2010-06-10 Thread Nelson A. de Oliveira
Hi!

On Thu, Jun 10, 2010 at 9:17 AM, Yavor Doganov ya...@gnu.org wrote:
 When building the debian package, the error message is:

 make[1]: Leaving directory `/tmp/buildd/batmon.app-0.5'
 convert Resources/Batmon_icon.tif -resize 32x32 batmon.xpm
 convert: unable to open image `Resources/Batmon_icon.tif': 
 /usr/lib/ImageMagick-6.6.0/modules-Q16/coders/tiff.la @ 
 error/blob.c/OpenBlob/2489.
 convert: unable to open image `Resources/Batmon_icon.tif':  @ 
 error/blob.c/OpenBlob/2489.
 convert: missing an image filename `batmon.xpm' @ 
 error/convert.c/ConvertImageCommand/2940.

This message is saying that convert was unable to find
Resources/Batmon_icon.tif (probably this file is somewhere else or you
are on a different dir while building the package).

See:

# convert notavailablefile.tif -resize 32x32 output.xpm
convert: unable to open image `notavailablefile.tif':
/usr/lib/ImageMagick-6.6.0/modules-Q16/coders/tiff.la @
error/blob.c/OpenBlob/2489.
convert: unable to open image `notavailablefile.tif':  @
error/blob.c/OpenBlob/2489.
convert: missing an image filename `output.xpm' @
error/convert.c/ConvertImageCommand/2940.

Will need to fix this in your debian/rules ;-)

 convert: Resources/BatMon_icon.tif: unknown field with tag 37724 (0x935c) 
 encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/703.

This warning message I have forwarded to
http://www.imagemagick.org/discourse-server/viewtopic.php?f=3t=16390
But it's just a warning. It properly converts the file to xpm.

Best regards,
Nelson



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#585414: imagemagick: convert: Converting TIFF to XPM fails

2010-06-10 Thread Bastien ROUCARIES
notforwarded  585414
tags 585414  + moreinfo
tags 585414  +  unreproducible
thanks
  convert: Resources/BatMon_icon.tif: unknown field with tag 37724 (0x935c) 
  encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/703.

 This warning message I have forwarded to
 http://www.imagemagick.org/discourse-server/viewtopic.php?f=3t=16390
 But it's just a warning. It properly converts the file to xpm.

Warning should be shut up using -quiet accoding to documentation.

this tag is TIFF Tag ImageSourceData used by photoshop. BTW for icons
it is better to have svg file. You could transform xpm to fig using
autotrace.

Will close this bug


Best ragard



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#585414: imagemagick: convert: Converting TIFF to XPM fails

2010-06-10 Thread Yavor Doganov
Nelson A. de Oliveira wrote:
 Will need to fix this in your debian/rules ;-)

Indeed, there's a typo in the filename.  Please accept my apologies
for the false alarm; I thought that I've reached the maximum
embarrassment limit, but it seems I am able to overflow it as time
goes by...

  convert: Resources/BatMon_icon.tif: unknown field with tag 37724 (0x935c) 
  encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/703.

 It properly converts the file to xpm.

Right, so please feel free to close this bug, or (although I won't
insist at all) transform it into a wishlist to improve the error
messages.  They looked really scary to me at least, and I felt I was
in the middle of nowhere, with no clue to follow except diving into
the source code.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#585414: imagemagick: convert: Converting TIFF to XPM fails

2010-06-10 Thread Bastien ROUCARIES
Close user error



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org