Skip to content

Commit

Permalink
alpha channel if alpha mask or 32-bit uncompressed
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed May 19, 2024
1 parent aafb1db commit 11587ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coders/bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,8 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception)
image->rows=(size_t) MagickAbsoluteValue(bmp_info.height);
image->depth=bmp_info.bits_per_pixel <= 8 ? bmp_info.bits_per_pixel : 8;
image->matte=((bmp_info.alpha_mask != 0) &&
(bmp_info.compression == BI_BITFIELDS)) ? MagickTrue : MagickFalse;
((bmp_info.compression == BI_RGB) && (bmp_info.bits_per_pixel == 32))) ?
MagickTrue : MagickFalse;
if (bmp_info.bits_per_pixel < 16)
{
size_t
Expand Down

0 comments on commit 11587ef

Please sign in to comment.