From 923349408e660612d4c60878dfbab5a430da6451 Mon Sep 17 00:00:00 2001 From: Essem Date: Thu, 30 Dec 2021 15:32:39 -0600 Subject: [PATCH] Fixed mirror colorspace --- natives/mirror.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/natives/mirror.cc b/natives/mirror.cc index 6e2e541..fcd77a0 100644 --- a/natives/mirror.cc +++ b/natives/mirror.cc @@ -48,6 +48,7 @@ Napi::Value Mirror(const Napi::CallbackInfo &info) { } for (Image &image : coalesced) { + image.colorSpace(Magick::sRGBColorspace); list mirrored; Image final; image.extent(Geometry(to_string(vertical ? image.baseColumns() @@ -96,4 +97,4 @@ Napi::Value Mirror(const Napi::CallbackInfo &info) { } catch (...) { throw Napi::Error::New(env, "Unknown error"); } -} \ No newline at end of file +}