2016-12-26 7.0.4-1 Cristy <quetzlzacatenango@image...>
* Initialize draw_info alpha member to OpaqueAlpha.
+ * Monochrome images no longer have inverted colors (reference
+ https://github.com/ImageMagick/ImageMagick/issues/332).
2016-12-18 7.0.4-0 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.4-0, GIT revision 19221:d5e8abc:20161218.
status=QuantizeImage(quantize_info,image,exception);
quantize_info=DestroyQuantizeInfo(quantize_info);
}
- status=AcquireImageColormap(image,2,exception);
image->alpha_trait=UndefinedPixelTrait;
break;
}
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
image->colors=MagickMax(colors,1);
if (image->colormap == (PixelInfo *) NULL)
- image->colormap=(PixelInfo *) AcquireQuantumMemory(image->colors,
+ image->colormap=(PixelInfo *) AcquireQuantumMemory(image->colors+1,
sizeof(*image->colormap));
else
image->colormap=(PixelInfo *) ResizeQuantumMemory(image->colormap,
- image->colors,sizeof(*image->colormap));
+ image->colors+1,sizeof(*image->colormap));
if (image->colormap == (PixelInfo *) NULL)
{
image->colors=0;