Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
convert logo: -type bilevel logo_tmp1.tif
convert logo_tmp1.tif -fill black -stroke black -font Arial -pointsize 100 -annotate +0+100 "Hello" logo_tmp2.tif
logo_tmp2.tif cannot be viewed in "Windows picture and fax viewer"(no preview available), showed rubbish in xnview and showed wrong colors in imdisplay.
The logo_tmp2.tif file I got was LZW-compressed, with a 1-bit black/white channel and a 1-bit alpha channel. This is an arguably-valid TIFF image, but application support for it is very low.
If you know you don't need transparency, doing something to remove it (e.g. "+matte") should help.
Again I would suggest you post a link to your image so that the IM developers or others can test with it.
Is the 1-bit alpha channel all opaque or part opaque and part transparent? What does identify -verbose yourimage.tif list?
I don't think IM supports a bilevelmatte type -- that is bilevel tiff with transparency. I have been unable to create a bilevel tiff with any kind of alpha channel (compressed or not)
magick wrote:We get a bilevel TIFF image with an associated alpha channel as expected using ImageMagick 6.7.2-2 with LIBTIFF, Version 3.9.5.
I was using IM 6.7.2.1 Q16 (HDRI) Mac OSX Tiger with libtiff 3.9.5 and was unsuccessful as above. What was your exact command to create the bilevel tiff with transparency (and LZW compression?).
gdb identify
GNU gdb 6.3.50-20050815 (Apple version gdb-696) (Sat Oct 20 18:20:28 GMT 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin"...
warning: --arch option not supported in this gdb.
Reading symbols for shared libraries ............................. done
(gdb) run -verbose logo_bl_alpha.tif
Starting program: /usr/local/bin/identify -verbose logo_bl_alpha.tif
Reading symbols for shared libraries .+.+++.................................................................++++++++++++++++++++ done
Reading symbols for shared libraries . done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x02eb5000
0x0112239c in ImportQuantumPixels (image=0x2004600, image_view=0x0, quantum_info=0x2908dd0, quantum_type=GrayAlphaQuantum, pixels=0x200d800 '?' <repeats 160 times>, exception=0x29039b0) at magick/quantum-import.c:1648
1648 SetPixelBlue(q,GetPixelRed(q));
(gdb) bt
#0 0x0112239c in ImportQuantumPixels (image=0x2004600, image_view=0x0, quantum_info=0x2908dd0, quantum_type=GrayAlphaQuantum, pixels=0x200d800 '?' <repeats 160 times>, exception=0x29039b0) at magick/quantum-import.c:1648
#1 0x01e42ff4 in ReadTIFFImage (image_info=0x1e3b000, exception=0x29039b0) at coders/tiff.c:1248
#2 0x01046c90 in ReadImage (image_info=0x1e36000, exception=0x29039b0) at magick/constitute.c:523
#3 0x01047adc in ReadImages (image_info=0x1e36000, exception=0x29039b0) at magick/constitute.c:889
#4 0x00652070 in IdentifyImageCommand (image_info=0x0, argc=3, argv=0x2904030, metadata=0xbffffac8, exception=0x29039b0) at wand/identify.c:319
#5 0x006838a0 in MagickCommandGenesis (image_info=0xfb000, command=0x651850 <IdentifyImageCommand>, argc=3, argv=0xbffffbcc, metadata=0xbffffac8, exception=0x29039b0) at wand/mogrify.c:169
#6 0x00002c90 in IdentifyMain (argc=3, argv=0xbffffbcc) at utilities/identify.c:80
#7 0x0000284c in _start ()
#8 0x00002550 in start ()
(gdb)
It seems to stop here and repeat each time I hit "return". So I cancelled here. Let me know if I should let it run longer or do something at each (gdb) prompt.