From: Cristy Date: Tue, 12 Jun 2018 23:00:45 +0000 (-0400) Subject: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=34134 X-Git-Tag: 7.0.8-0~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7c892d5ae52dfeb7bb4fb4629c8bf4e501c48ab;p=imagemagick https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=34134 --- diff --git a/MagickCore/vision.c b/MagickCore/vision.c index eeaaf3dfb..1d06a8b39 100644 --- a/MagickCore/vision.c +++ b/MagickCore/vision.c @@ -585,6 +585,7 @@ MagickExport Image *ConnectedComponentsImage(const Image *image, if (object[i].census != 0) continue; component_image->alpha_trait=BlendPixelTrait; + component_image->colormap[i].alpha_trait=BlendPixelTrait; component_image->colormap[i].alpha=(MagickRealType) TransparentAlpha; } } @@ -614,6 +615,7 @@ MagickExport Image *ConnectedComponentsImage(const Image *image, for ( ; first != (last+step); first+=step) { component_image->alpha_trait=BlendPixelTrait; + component_image->colormap[first].alpha_trait=BlendPixelTrait; component_image->colormap[first].alpha=(MagickRealType) TransparentAlpha; }