Windows compatibility #19

Hide WebP format and normalise option

Separate test runners for node and iojs
This commit is contained in:
Lovell Fuller
2015-04-21 12:13:19 +01:00
parent 8926ebc56c
commit 1e52c2dbe6
13 changed files with 231 additions and 206 deletions

View File

@@ -708,6 +708,7 @@ class ResizeWorker : public NanAsyncWorker {
image = gammaDecoded;
}
#ifndef _WIN32
// Apply normalization
if (baton->normalize) {
VipsInterpretation typeBeforeNormalize = image->Type;
@@ -787,6 +788,7 @@ class ResizeWorker : public NanAsyncWorker {
image = normalized;
}
}
#endif
// Convert image to sRGB, if not already
if (image->Type != VIPS_INTERPRETATION_sRGB) {

View File

@@ -8,6 +8,10 @@
#include "resize.h"
#include "utilities.h"
#ifdef _WIN64
#error Windows 64-bit currently unsupported - see https://github.com/lovell/sharp#windows
#endif
extern "C" void init(v8::Handle<v8::Object> target) {
NanScope();
vips_init("sharp");