https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29105).
* Respect connected-components:area-threshold define (reference
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31006).
+ * Enable alpha channel if background color is non-opaque (reference
+ https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31016).
2016-12-05 7.0.3-9 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.3-9, GIT revision 19139:6fed3f1:20161205.
#include "MagickCore/cache.h"
#include "MagickCore/cache-private.h"
#include "MagickCore/cache-view.h"
+#include "MagickCore/channel.h"
#include "MagickCore/client.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
assert(image->signature == MagickCoreSignature);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
+ if ((image->background_color.alpha != OpaqueAlpha) &&
+ (image->alpha_trait == UndefinedPixelTrait))
+ (void) SetImageAlphaChannel(image,OnAlphaChannel,exception);
ConformPixelInfo(image,&image->background_color,&background,exception);
/*
Set image background color.