Skip to content

Commit

Permalink
Fix to enable the alpha channel with the OpenEXRCore api.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Apr 30, 2024
1 parent c50fb81 commit 87e13b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coders/exr.c
Expand Up @@ -363,7 +363,10 @@ static Image *ReadEXRImage(const ImageInfo *image_info,ExceptionInfo *exception)
else if (LocaleNCompare(channel->channel_name,"B",1) == 0)
pixel_channels[c]=BluePixelChannel;
else if (LocaleNCompare(channel->channel_name,"A",1) == 0)
pixel_channels[c]=AlphaPixelChannel;
{
pixel_channels[c]=AlphaPixelChannel;
image->alpha_trait=BlendPixelTrait;
}
else if (LocaleNCompare(channel->channel_name,"Y",1) == 0)
pixel_channels[c]=IndexPixelChannel; /* Gray channel */
else
Expand Down

0 comments on commit 87e13b5

Please sign in to comment.