12 #ifndef OPENSHOT_MAGICK_UTILITIES_H
13 #define OPENSHOT_MAGICK_UTILITIES_H
15 #ifdef USE_IMAGEMAGICK
28 #pragma GCC diagnostic push
29 #pragma GCC diagnostic ignored "-Wignored-qualifiers"
31 #pragma GCC diagnostic pop
36 #define NEW_MAGICK (MagickLibVersion >= 0x700)
42 #define MAGICK_IMAGE_ALPHA(im, a) im->alpha((a))
44 #define MAGICK_IMAGE_ALPHA(im, a) im->matte((a))
51 #define MAGICK_DRAWABLE std::vector<Magick::Drawable>
53 #define MAGICK_DRAWABLE std::list<Magick::Drawable>
59 std::shared_ptr<Magick::Image>
63 std::shared_ptr<QImage>
68 #endif // USE_IMAGEMAGICK
69 #endif // OPENSHOT_MAGICK_UTILITIES_H