mirror of
https://github.com/lovell/sharp.git
synced 2025-07-10 11:00:14 +02:00
Put back overzealous code removal from 2470e5c
This commit is contained in:
parent
cbdbbe535a
commit
de09577342
@ -1064,6 +1064,10 @@ describe('Input/output', function () {
|
|||||||
.toFormat('jpeg')
|
.toFormat('jpeg')
|
||||||
.toBuffer(function (err, data, info) {
|
.toBuffer(function (err, data, info) {
|
||||||
assert.strictEqual(err.message.indexOf('memory area too small') > 0, true);
|
assert.strictEqual(err.message.indexOf('memory area too small') > 0, true);
|
||||||
|
const readable = fs.createReadStream(fixtures.inputJPGBig);
|
||||||
|
const inPipeline = sharp()
|
||||||
|
.resize(840, 472)
|
||||||
|
.raw();
|
||||||
const goodPipeline = sharp(null, {raw: {width: 840, height: 472, channels: 3}})
|
const goodPipeline = sharp(null, {raw: {width: 840, height: 472, channels: 3}})
|
||||||
.toFormat('jpeg')
|
.toFormat('jpeg')
|
||||||
.toBuffer(function (err, data, info) {
|
.toBuffer(function (err, data, info) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user