aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sls.cpp4
-rw-r--r--src/sls.h6
2 files changed, 9 insertions, 1 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);
diff --git a/src/sls.h b/src/sls.h
index 6dc9d47..0b5fae2 100644
--- a/src/sls.h
+++ b/src/sls.h
@@ -34,7 +34,11 @@
#include "pad_common.h"
#if HAVE_MAGICKWAND
-# include <wand/magick_wand.h>
+# if HAVE_MAGICKWAND_LEGACY
+# include <wand/magick_wand.h>
+# else
+# include <MagickWand/MagickWand.h>
+# endif
#endif
#include <sys/stat.h>