+2017-05-06 7.0.5-6 Cristy <quetzlzacatenango@image...>
+ * Restore the -alpha Shape option (reference
+ https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31879).
+
2017-04-24 7.0.5-5 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.5-5, GIT revision 19915:12eec43:20170424.
return(status);
}
case CopyAlphaChannel:
- case ShapeAlphaChannel:
{
- /*
- Copy pixel intensity to the alpha channel.
- */
image->alpha_trait=UpdatePixelTrait;
status=CompositeImage(image,image,IntensityCompositeOp,MagickTrue,0,0,
exception);
- if (alpha_type == ShapeAlphaChannel)
- (void) LevelImageColors(image,&image->background_color,
- &image->background_color,MagickTrue,exception);
break;
}
case DeactivateAlphaChannel:
status=SetImageAlpha(image,OpaqueAlpha,exception);
break;
}
+ case ShapeAlphaChannel:
+ {
+ /*
+ Set alpha channel by shape.
+ */
+ image->alpha_trait=UpdatePixelTrait;
+ (void) SetImageMask(image,WritePixelMask,image,exception);
+ (void) LevelImageColors(image,&image->background_color,
+ &image->background_color,MagickTrue,exception);
+ (void) SetImageMask(image,WritePixelMask,(Image *) NULL,exception);
+ break;
+ }
case TransparentAlphaChannel:
{
status=SetImageAlpha(image,TransparentAlpha,exception);