- clamp after edge [bsc#1106415]

OBS-URL: https://build.opensuse.org/package/show/graphics/ImageMagick?expand=0&rev=402
This commit is contained in:
Petr Gajdos 2019-01-14 10:56:47 +00:00 committed by Git OBS Bridge
parent 8cde9b444b
commit 28a05ab1a9
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/MagickCore/effect.c b/MagickCore/effect.c
index 66f61e0e8d..14e17040ba 100644
--- a/MagickCore/effect.c
+++ b/MagickCore/effect.c
@@ -1225,6 +1225,8 @@ MagickExport Image *EdgeImage(const Image *image,const double radius,
kernel_info->values[i]=(-1.0);
kernel_info->values[i/2]=(double) kernel_info->width*kernel_info->height-1.0;
edge_image=ConvolveImage(image,kernel_info,exception);
+ if (edge_image != (Image *) NULL)
+ (void) ClampImage(edge_image,exception);
kernel_info=DestroyKernelInfo(kernel_info);
return(edge_image);
}

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 14 10:52:18 UTC 2019 - Petr Gajdos <pgajdos@suse.com>
- clamp after edge [bsc#1106415]
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 7 09:04:46 UTC 2019 - Petr Gajdos <pgajdos@suse.com> Mon Jan 7 09:04:46 UTC 2019 - Petr Gajdos <pgajdos@suse.com>

View File

@ -47,6 +47,7 @@ Patch2: ImageMagick-library-installable-in-parallel.patch
#%%ifarch s390x s390 ppc64 ppc #%%ifarch s390x s390 ppc64 ppc
Patch3: ImageMagick-s390-disable-tests.patch Patch3: ImageMagick-s390-disable-tests.patch
#%%endif #%%endif
Patch4: ImageMagick-clamp-after-edge.patch
BuildRequires: chrpath BuildRequires: chrpath
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -301,6 +302,7 @@ HTML documentation for ImageMagick library and scene examples.
%ifarch s390x s390 ppc ppc64 %ifarch s390x s390 ppc ppc64
%patch3 -p1 %patch3 -p1
%endif %endif
%patch4 -p1
%build %build
# bsc#1088463 # bsc#1088463