Switch to sequential read as default where possible

This commit is contained in:
Lovell Fuller
2023-01-15 18:43:50 +00:00
parent 081debd055
commit a1e464cc5e
6 changed files with 14 additions and 11 deletions

View File

@@ -535,10 +535,10 @@ async.series({
}
});
}
}).add('sharp-sequentialRead', {
}).add('sharp-random-access-read', {
defer: true,
fn: function (deferred) {
sharp(inputJpgBuffer, { sequentialRead: true })
sharp(inputJpgBuffer, { sequentialRead: false })
.resize(width, height)
.toBuffer(function (err) {
if (err) {