Possible bug in creating TIFF with 4 colours

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.
Post Reply
User avatar
yecril71pl
Posts: 81
Joined: 2011-02-08T11:06:09-07:00
Authentication code: 8675308
Location: Warsaw, Poland
Contact:

Possible bug in creating TIFF with 4 colours

Post by yecril71pl »

Code: Select all

convert logo: -colors 4 logo.tiff
The result is useless: black vertical stripes, the image is displaced and cropped.
(Version: 6.6.7.9, openSUSE 11.4 x64)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Possible bug in creating TIFF with 4 colours

Post by fmw42 »

I get a similar result on IM 6.6.8.4 Q16 Mac OSX Tiger (with or without +dither).
User avatar
yecril71pl
Posts: 81
Joined: 2011-02-08T11:06:09-07:00
Authentication code: 8675308
Location: Warsaw, Poland
Contact:

Re: Possible bug in creating TIFF with 4 colours

Post by yecril71pl »

A simpler test case:

Code: Select all

convert -size 100x400 canvas:red canvas:green +append canvas:blue +append -type Palette c4.tiff
The result is just red :shock:

I tried smaller sizes; 4x12 is all right but 8x24 turns all red.
Last edited by yecril71pl on 2011-03-21T12:44:17-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Possible bug in creating TIFF with 4 colours

Post by magick »

Must be a Mac OS thing-- your conversion works fine under Linux. We'll check it out under Mac OS X when we get a chance.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Possible bug in creating TIFF with 4 colours

Post by fmw42 »

Note his original post was on (Version: 6.6.7.9, openSUSE 11.4 x64), so not just a Mac issue.

However, this works fine for me on Mac OSX Tiger IM 6.6.8.5 Q16


convert -size 100x400 canvas:red canvas:green +append canvas:blue +append -type Palette c4.tiff

and so does this from the original post:

convert logo: -colors 4 logo.tiff

(no stripes)


So it somehow got fixed between 6.6.8.4 and 6.6.8.5
User avatar
yecril71pl
Posts: 81
Joined: 2011-02-08T11:06:09-07:00
Authentication code: 8675308
Location: Warsaw, Poland
Contact:

Re: Possible bug in creating TIFF with 4 colours

Post by yecril71pl »

The result is correct with 6.6.8-5, custom built for TIFF support exclusively.
Post Reply