POV-Ray : Newsgroups : povray.beta-test : Alpha channel in image formats Server Time
23 Dec 2024 13:31:00 EST (-0500)
  Alpha channel in image formats (Message 1 to 3 of 3)  
From: clipka
Subject: Alpha channel in image formats
Date: 15 Sep 2009 06:42:06
Message: <4aaf6f7e$1@news.povray.org>
Ive, it appears to me that TIFF is handling the alpha channel different 
from other file formats; something about "precomputed alpha" I guess - 
is that right?


Post a reply to this message

From: Ive
Subject: Re: Alpha channel in image formats
Date: 15 Sep 2009 07:29:16
Message: <4aaf7a8c$1@news.povray.org>
clipka wrote:
> Ive, it appears to me that TIFF is handling the alpha channel different 
> from other file formats; something about "precomputed alpha" I guess - 
> is that right?

TIFF supports *everything* and so the image data itself might already be 
"pre-multiplied" by the alpha channel or it might not (like within PNG) 
which should nowadays be the more common case (but TIFF exists since 
over 25 years!).
The libtif-RGBA-interface does not care about such things and (as I've 
tried to explain in some of my other posts) even the way the meaning of 
the tag that does specify this has changed over the years.
Also the RGBA-interface returns just the first of possible multiple 
"extra"-channels and the actual alpha channel could also be e.g. the 
second one.
Not to mention that the returned A-channel might be no alpha channel at 
all, could be anything, e.g. a depth-map. And it can also happen...
...am I starting to bore you? Just tell me!

-Ive


Post a reply to this message

From: clipka
Subject: Re: Alpha channel in image formats
Date: 15 Sep 2009 12:48:22
Message: <4aafc556$1@news.povray.org>
Ive schrieb:
> Not to mention that the returned A-channel might be no alpha channel at 
> all, could be anything, e.g. a depth-map. And it can also happen...
> ...am I starting to bore you? Just tell me!

I'm not easy to bore, but... well, I guess I'll just file the TIFF 
format as "too flexible to bother about the details at present" :-P


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.