Ensure boolean, bandbool, extractChannel ops occur before sRGB conversion (#504)

This commit is contained in:
Matt Hirsch
2016-07-13 14:20:50 -04:00
committed by Lovell Fuller
parent 2d500554c1
commit 15a577863a
2 changed files with 23 additions and 14 deletions

View File

@@ -69,4 +69,13 @@ describe('Image channel extraction', function() {
});
});
it('Non-existant channel', function(done) {
sharp(fixtures.inputPng)
.extractChannel(1)
.toBuffer(function(err) {
assert(err instanceof Error);
done();
});
});
});