From: anthony Date: Sun, 29 Apr 2012 11:46:27 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5699 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb2cc88134c9c433fb928baaac7ee7578ed57b0a;p=imagemagick --- diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c index 0274fd5d0..7eb5448c5 100644 --- a/MagickCore/attribute.c +++ b/MagickCore/attribute.c @@ -809,7 +809,9 @@ MagickExport MagickBooleanType IsImageMonochrome(const Image *image, %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % IsImageOpaque() returns MagickTrue if none of the pixels in the image have -% an opacity value other than opaque (0). +% an alpha value other than OpaqueAlpha (QuantumRange). +% +% Will return true immediatally is alpha channel is not available. % % The format of the IsImageOpaque method is: % @@ -845,8 +847,10 @@ MagickExport MagickBooleanType IsImageOpaque(const Image *image, assert(image->signature == MagickSignature); if (image->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); + if (image->matte == MagickFalse) return(MagickTrue); + image_view=AcquireVirtualCacheView(image,exception); for (y=0; y < (ssize_t) image->rows; y++) {