From 562c52bb3363df927cf3a78198378cb272450787 Mon Sep 17 00:00:00 2001 From: Danack Date: Thu, 11 Nov 2021 13:26:41 +0000 Subject: [PATCH] Actually use attentuate variable. --- imagick_class.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/imagick_class.c b/imagick_class.c index 7e2f04d6..0e0bf52c 100644 --- a/imagick_class.c +++ b/imagick_class.c @@ -10402,7 +10402,12 @@ PHP_METHOD(Imagick, addNoiseImageWithAttenuate) return; - status = MagickAddNoiseImageChannel(intern->magick_wand, channel, noise); + status = MagickAddNoiseImageChannelWithAttenuate( + intern->magick_wand, + channel, + noise, + attenuate + ); if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to add image noise" TSRMLS_CC);