diff --git a/natives/image.cc b/natives/image.cc index 6516fd8..fb0ebb5 100644 --- a/natives/image.cc +++ b/natives/image.cc @@ -40,8 +40,15 @@ #include "whisper.h" #include "zamn.h" +#ifdef _WIN32 +#include +#endif + Napi::Object Init(Napi::Env env, Napi::Object exports) { +#ifdef _WIN32 + Magick::InitializeMagick(""); +#endif exports.Set(Napi::String::New(env, "blur"), Napi::Function::New(env, Blur)); exports.Set(Napi::String::New(env, "colors"), Napi::Function::New(env, Colors)); exports.Set(Napi::String::New(env, "caption"), Napi::Function::New(env, Caption));