mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Ensure boolean, bandbool, extractChannel ops occur before sRGB conversion (#504)
This commit is contained in:
committed by
Lovell Fuller
parent
2d500554c1
commit
15a577863a
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user