Skip to content

Commit

Permalink
Actually use attentuate variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Danack committed Nov 11, 2021
1 parent d60b74f commit 562c52b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion imagick_class.c
Expand Up @@ -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);
Expand Down

0 comments on commit 562c52b

Please sign in to comment.