]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 24 Oct 2011 18:50:49 +0000 (18:50 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 24 Oct 2011 18:50:49 +0000 (18:50 +0000)
coders/avs.c

index dc9012a35df5c6e346259f9b120032da7602e1a9..970544390b62e8297e4e7c0286473c8a9e093dbc 100644 (file)
@@ -152,6 +152,7 @@ static Image *ReadAVSImage(const ImageInfo *image_info,ExceptionInfo *exception)
     /*
       Convert AVS raster image to pixel packets.
     */
+    image->matte=MagickTrue;
     image->columns=width;
     image->rows=height;
     image->depth=8;
@@ -178,8 +179,6 @@ static Image *ReadAVSImage(const ImageInfo *image_info,ExceptionInfo *exception)
         SetPixelRed(image,ScaleCharToQuantum(*p++),q);
         SetPixelGreen(image,ScaleCharToQuantum(*p++),q);
         SetPixelBlue(image,ScaleCharToQuantum(*p++),q);
-        if (GetPixelAlpha(image,q) != OpaqueAlpha)
-          image->matte=MagickTrue;
         q+=GetPixelChannels(image);
       }
       if (SyncAuthenticPixels(image,exception) == MagickFalse)