]> granicus.if.org Git - imagemagick/commitdiff
The -sketch option now matches the output of IMv6
authorCristy <urban-warrior@imagemagick.org>
Sat, 13 Feb 2016 16:01:47 +0000 (11:01 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 13 Feb 2016 16:01:47 +0000 (11:01 -0500)
MagickCore/fx.c

index bf1e0f124332dc044609bd426df524890eb51722..8d3ac81589ca16ab16c5e38969bc2d937a7b6905 100644 (file)
@@ -4497,12 +4497,12 @@ MagickExport Image *SketchImage(const Image *image,const double radius,
     const int
       id = GetOpenMPThreadId();
 
-    register ssize_t
-      x;
-
     register Quantum
       *magick_restrict q;
 
+    register ssize_t
+      x;
+
     if (status == MagickFalse)
       continue;
     q=QueueCacheViewAuthenticPixels(random_view,0,y,random_image->columns,1,
@@ -4572,6 +4572,8 @@ MagickExport Image *SketchImage(const Image *image,const double radius,
       sketch_image=DestroyImage(sketch_image);
       return((Image *) NULL);
     }
+  if (blend_image->alpha_trait != BlendPixelTrait)
+    (void) SetImageAlpha(blend_image,TransparentAlpha,exception);
   (void) SetImageArtifact(blend_image,"compose:args","20x80");
   (void) CompositeImage(sketch_image,blend_image,BlendCompositeOp,MagickTrue,
     0,0,exception);