AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.09.15 12:38 "[Tiff] is there alpha component present in Grayscale or Palette color image", by Anurag Singh
2006.09.15 15:49 "Re: [Tiff] is there alpha component present in Grayscale or Palettecolor image", by Gerben Vos
2006.09.15 17:37 "Re: [Tiff] is there alpha component present in Grayscale or Palettecolor image", by Bob Friesenhahn
2006.09.15 17:46 "RE: [Tiff] is there alpha component present in Grayscale orPalettecolor image", by Ed Grissom
2006.09.15 17:54 "RE: [Tiff] is there alpha component present in Grayscale orPalettecolor image", by Bob Friesenhahn
2006.09.16 09:58 "Re: [Tiff] is there alpha component present in Grayscale orPalettecolor image", by Anurag Singh
2006.09.18 11:23 "Re: [Tiff] is there alpha component present in Grayscale orPalettecolor image", by Gerben Vos
2006.09.16 20:01 "Re: [Tiff] is there alpha component present in GrayscaleorPalettecolor image", by Joris Van Damme
2006.09.16 20:47 "Re: [Tiff] is there alpha component present in GrayscaleorPalettecolor image", by Bob Friesenhahn
2006.09.16 21:50 "Re: [Tiff] is there alpha component present in GrayscaleorPalettecolorimage", by Joris Van Damme
2006.09.16 22:00 "Re: [Tiff] is there alpha component present in GrayscaleorPalettecolorimage", by Toby Thain
2006.09.16 22:18 "Re: [Tiff] is there alpha component present in GrayscaleorPalettecolorimage", by Joris Van Damme
2006.09.16 22:20 "Re: [Tiff] is there alpha component present in GrayscaleorPalettecolorimage", by Toby Thain
2006.09.16 22:38 "Re: [Tiff] is there alpha component present in GrayscaleorPalettecolorimage", by Joris Van Damme
2006.09.17 02:07 "Re: [Tiff] is there alpha component present in GrayscaleorPalettecolorimage", by Graeme Gill
2006.09.17 08:49 "Re: [Tiff] is there alpha component presentin GrayscaleorPalettecolorimage", by Joris Van Damme
2006.09.17 09:03 "Re: [Tiff] is there alpha component presentin GrayscaleorPalettecolorimage", by Joris Van Damme
2006.09.17 10:39 "Re: [Tiff] is there alpha component presentin GrayscaleorPalettecolorimage", by Graeme Gill
2006.09.17 17:23 "Re: [Tiff] is there alphacomponent presentin GrayscaleorPalettecolorimage", by Joris Van Damme
2006.09.18 01:35 "Re: [Tiff] is there alphacomponent presentin GrayscaleorPalettecolorimage", by Graeme Gill
2006.09.18 09:40 "Re: [Tiff] isthere alphacomponent presentin GrayscaleorPalettecolorimage", by Joris Van Damme
2006.09.18 14:39 "Re: [Tiff] is there alpha component present in GrayscaleorPalettecolorimage", by Gerben Vos
2006.09.18 11:06 "Re: [Tiff] is there alpha component present in Grayscale orPalettecolor image", by Gerben Vos

2006.09.16 22:00 "Re: [Tiff] is there alpha component present in GrayscaleorPalettecolorimage", by Toby Thain

On 16-Sep-06, at 5:50 PM, Joris wrote:

PNG does not support associated (pre-multiplied) alpha. It only supports unassociated (simple) alpha. In this case, supporting alpha from within the colormap makes sense. For example, you may assign one color to represent all completely transparent areas (like GIF). TIFF does support unassociated (simple) alpha but the TIFF specification does not define how it should be applied to the image to obtain a viewable result.

I have another take on this. The difference between pre-multiplied (associated) and ordinarry non-multiplied alpha, is merely a multiplication (except when alpha indicates complete transparency). That's just a maths operation. So in my mind, the fundamental quirck about having alpha inside palette entries is independent of whether you code it as pre-multiplied or non-multiplied. The simple fact remains you're making fixed associations between colors and alpha, as opposed to coding alpha as per actual pixel position. It's this simple fact that makes a huge impact on the code required. For example, dithering from full-color-with-alpha to palette-including-alpha is the challenge,

Why is that challenging? You just omit that index from colour matching consideration. In most cases, just thresholding alpha to that index would be sufficient for opacity handling.

--Toby

> and
> whether those palette entries are coded pre-multiplied or non-
> multiplied

doesn't have an impact in this regard.