mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Windows compatibility #19
Hide WebP format and normalise option Separate test runners for node and iojs
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user