Skip to content

Commit

Permalink
fix issue elad#168
Browse files Browse the repository at this point in the history
this compile error is caused by imagemagick header definenation changes
  • Loading branch information
bugparty committed May 23, 2019
1 parent 158da85 commit 4db8ad4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/imagemagick.cc
Original file line number Diff line number Diff line change
Expand Up @@ -907,10 +907,10 @@ NAN_METHOD(GetConstPixels) {
Magick::PixelPacket pixel = pixels[ i ];
Local<Object> color = Nan::New<Object>();

color->Set(Nan::New<String>("red").ToLocalChecked(), Nan::New<Integer>(pixel.red));
color->Set(Nan::New<String>("green").ToLocalChecked(), Nan::New<Integer>(pixel.green));
color->Set(Nan::New<String>("blue").ToLocalChecked(), Nan::New<Integer>(pixel.blue));
color->Set(Nan::New<String>("opacity").ToLocalChecked(), Nan::New<Integer>(pixel.opacity));
color->Set(Nan::New<String>("red").ToLocalChecked(), Nan::New<Number>(pixel.red));
color->Set(Nan::New<String>("green").ToLocalChecked(), Nan::New<Number>(pixel.green));
color->Set(Nan::New<String>("blue").ToLocalChecked(), Nan::New<Number>(pixel.blue));
color->Set(Nan::New<String>("opacity").ToLocalChecked(), Nan::New<Number>(pixel.opacity));

out->Set(i, color);
}
Expand Down

0 comments on commit 4db8ad4

Please sign in to comment.