aboutsummaryrefslogtreecommitdiffstats
path: root/src/sls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sls.cpp')
-rw-r--r--src/sls.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sls.cpp b/src/sls.cpp
index 9df7824..1111088 100644
--- a/src/sls.cpp
+++ b/src/sls.cpp
@@ -229,7 +229,11 @@ size_t SLSManager::resizeImage(MagickWand* m_wand, unsigned char** blob, const s
height = height * 320.0 / width;
width = 320;
}
+#ifdef HAVE_MAGICKWAND_LEGACY
MagickResizeImage(m_wand, width, height, LanczosFilter, 1);
+#else
+ MagickResizeImage(m_wand, width, height, LanczosFilter);
+#endif
}
height = MagickGetImageHeight(m_wand);