Add InitializeMagick to native image code

This commit is contained in:
Essem 2021-12-30 23:08:06 -06:00
parent c0dbb2f733
commit 1e1a24b003
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -40,8 +40,15 @@
#include "whisper.h"
#include "zamn.h"
#ifdef _WIN32
#include <Magick++.h>
#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));