From: JazzyNico Date: Wed, 14 Apr 2010 17:30:26 +0000 (+0200) Subject: Fix for ImageMagick solarize extension. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e1f9c68dd9bc2abbe9a10e482c8cfa7df1c8f6cf;p=inkscape.git Fix for ImageMagick solarize extension. --- diff --git a/src/extension/internal/bitmap/solarize.cpp b/src/extension/internal/bitmap/solarize.cpp index 147c4f0b5..ea9ec42f3 100644 --- a/src/extension/internal/bitmap/solarize.cpp +++ b/src/extension/internal/bitmap/solarize.cpp @@ -18,7 +18,9 @@ namespace Bitmap { void Solarize::applyEffect(Magick::Image* image) { - image->solarize(_factor); + // Image Magick Quantum depth = 16 + // 655.35 = (2^16 - 1) / 100 + image->solarize(_factor * 655.35); } void