mirror of
https://github.com/lovell/sharp.git
synced 2026-02-07 23:26:15 +01:00
Add pixel-derived image statistics via vips_stats (#915)
This commit is contained in:
committed by
Lovell Fuller
parent
dfaa39fa5d
commit
d6aee8e5ba
@@ -20,6 +20,7 @@
|
||||
#include "metadata.h"
|
||||
#include "pipeline.h"
|
||||
#include "utilities.h"
|
||||
#include "stats.h"
|
||||
|
||||
NAN_MODULE_INIT(init) {
|
||||
vips_init("sharp");
|
||||
@@ -46,6 +47,8 @@ NAN_MODULE_INIT(init) {
|
||||
Nan::GetFunction(Nan::New<v8::FunctionTemplate>(format)).ToLocalChecked());
|
||||
Nan::Set(target, Nan::New("_maxColourDistance").ToLocalChecked(),
|
||||
Nan::GetFunction(Nan::New<v8::FunctionTemplate>(_maxColourDistance)).ToLocalChecked());
|
||||
Nan::Set(target, Nan::New("stats").ToLocalChecked(),
|
||||
Nan::GetFunction(Nan::New<v8::FunctionTemplate>(stats)).ToLocalChecked());
|
||||
}
|
||||
|
||||
NODE_MODULE(sharp, init)
|
||||
|
||||
Reference in New Issue
Block a user