possible bug converting ai to tiff IM 6.8.9.9 Q16 Mac OSX

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
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug converting ai to tiff IM 6.8.9.9 Q16 Mac OSX

Post by fmw42 »

I am finding that flattening a transparent ai file while converting to tiff is leaving a perfectly opaque alpha channel rather then removing it.

Input:
https://app.box.com/s/icwny5lzebknx5rq3wxl

Command:

Code: Select all

convert FQ68DTFT_Fig2.ai -depth 8 -background white -flatten -compress lzw tmp1.tif
Workaround:

Code: Select all

convert FQ68DTFT_Fig2.ai -depth 8 -background white -flatten -compress lzw -alpha off tmp1.tif
or

Code: Select all

convert FQ68DTFT_Fig2.ai -alpha off -depth 8 -compress lzw tmp1.tif
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: possible bug converting ai to tiff IM 6.8.9.9 Q16 Mac OSX

Post by snibgo »

This can also happen from other operations, and writing to png instead of tiff. In general, output files can contain fully opaque alpha. It would be good if IM recognised when alpha was entirely opaque, and only wrote it for PNG32: or "-type *Alpha".
snibgo's IM pages: im.snibgo.com
Post Reply