Задайте вопросЗадайте вопрос
 

ОтвеченоHow to decode tiff file and preserve opacity?

  • 3 июля 2009 г. 20:37silverweb Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     

    By default, standard TiffBitmapDecoder decodes to flatten image with white background. All transparency converts to white. But if I save in Photoshop file in tiff format, with not recently used option, "Save Transparency", TiffBitmapDecoder converts fine and preserve opacity.

    I need solution, how I can import all tiff files and preserve opacity, or how I can read alpha chanel or mask information from file to have ability add Opacity.Mask to Image?

     

     

     

Ответы

  • 6 июля 2009 г. 23:31Jordan Parker - MSFT Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено

    Eric from the WIC team says this:

    "The problem is that, when Photoshop saves a TIFF file, it handles alpha by using custom metadata which stores Photoshop’s proprietary layer information. If “save layers” is turned off, even Photoshop won’t recognize that the saved image has alpha.

    The most standard way to support alpha in a TIFF file is to use an extra sample representing the alpha channel. By default, Photoshop doesn’t write this sample, so WIC has no good way of detecting that the image includes alpha. If the “Save transparency” option is checked in Photoshop, it will write the alpha channel, in which case WIC should recognize and display the alpha properly.

    Given that Adobe’s default way of saving alpha is proprietary and based on the Photoshop layer system, most applications won’t detect the TIFF’s alpha unless the “Save transparency” option is checked (I confirmed with IrfanView, Picassa didn’t seem to support TIFF transparency)."

    You need to use "save transparency."

    • Помечено в качестве ответаsilverweb 7 июля 2009 г. 20:28
    •  

Все ответы