mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Add joinChannel and toColourspace/toColorspace operations (#513)
This commit is contained in:
committed by
Lovell Fuller
parent
72354d55a8
commit
5c5d74a903
@@ -15,13 +15,12 @@ describe('Bandbool per-channel boolean operations', function() {
|
||||
it(op + ' operation', function(done) {
|
||||
sharp(fixtures.inputPngBooleanNoAlpha)
|
||||
.bandbool(op)
|
||||
.toColourspace('b-w')
|
||||
.toBuffer(function(err, data, info) {
|
||||
// should use .toColourspace('b-w') here to get 1 channel output, when it is merged
|
||||
if (err) throw err;
|
||||
assert.strictEqual(200, info.width);
|
||||
assert.strictEqual(200, info.height);
|
||||
//assert.strictEqual(1, info.channels);
|
||||
assert.strictEqual(3, info.channels);
|
||||
assert.strictEqual(1, info.channels);
|
||||
fixtures.assertSimilar(fixtures.expected('bandbool_' + op + '_result.png'), data, done);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user