Add 'clone' method to snapshot an instance

Cloned instances share a common input
Allows multiple output Streams to use a single input Stream
This commit is contained in:
Lovell Fuller
2015-06-23 13:24:32 +01:00
parent 1091be374e
commit 86490bedfb
4 changed files with 93 additions and 1 deletions

View File

@@ -1222,7 +1222,6 @@ NAN_METHOD(pipeline) {
baton->bufferInLength = node::Buffer::Length(buffer);
baton->bufferIn = new char[baton->bufferInLength];
memcpy(baton->bufferIn, node::Buffer::Data(buffer), baton->bufferInLength);
options->Set(NanNew<String>("bufferIn"), NanNull());
}
// ICC profile to use when input CMYK image has no embedded profile
baton->iccProfilePath = *String::Utf8Value(options->Get(NanNew<String>("iccProfilePath"))->ToString());