Tests: ensure Jimp benchmark uses bicubic as resizing kernel (#3745)

This commit is contained in:
Kleis Auke Wolthuizen 2023-07-30 12:25:45 +02:00 committed by GitHub
parent 440936a699
commit bc8f983329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -652,7 +652,7 @@ async.series({
throw err; throw err;
} else { } else {
image image
.resize(width, heightPng) .resize(width, heightPng, jimp.RESIZE_BICUBIC)
.deflateLevel(6) .deflateLevel(6)
.filterType(0) .filterType(0)
.getBuffer(jimp.MIME_PNG, function (err) { .getBuffer(jimp.MIME_PNG, function (err) {
@ -673,7 +673,7 @@ async.series({
throw err; throw err;
} else { } else {
image image
.resize(width, heightPng) .resize(width, heightPng, jimp.RESIZE_BICUBIC)
.deflateLevel(6) .deflateLevel(6)
.filterType(0) .filterType(0)
.write(outputPng, function (err) { .write(outputPng, function (err) {