diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sls.cpp | 4 | ||||
-rw-r--r-- | src/sls.h | 6 |
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); @@ -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> |