From: cristy Date: Fri, 21 May 2010 18:38:03 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~9418 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5185165998529417c9ac1ab7578f36d532ee4a06;p=imagemagick --- diff --git a/ChangeLog b/ChangeLog index 2bcbe6621..0ca9e3f28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,7 @@ * Enable PFM endian support. * Add context to -border for montage. Inside the parenthesis it adds a border to the image otherwise it sets the border for the layout manager. + * 24-bit BMP images are not colormapped even if header colors != 0. 2010-05-15 6.6.1-10 Cristy * Use ScaleCharToQuantum() in coders/src.c (reference diff --git a/coders/bmp.c b/coders/bmp.c index a5471032f..bb075a784 100644 --- a/coders/bmp.c +++ b/coders/bmp.c @@ -830,7 +830,7 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception) if ((bmp_info.bits_per_pixel == 16) || (bmp_info.bits_per_pixel == 32)) image->matte=bmp_info.alpha_mask != 0 ? MagickTrue : MagickFalse; - if ((bmp_info.number_colors != 0) || (bmp_info.bits_per_pixel < 16)) + if ((bmp_info.number_colors != 0) && (bmp_info.bits_per_pixel < 16)) { image->storage_class=PseudoClass; image->colors=bmp_info.number_colors;