Skip to content

Commit

Permalink
Tests: ensure Jimp benchmark uses bicubic as resizing kernel (#3745)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Jul 30, 2023
1 parent 440936a commit bc8f983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/bench/perf.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ async.series({
throw err;
} else {
image
.resize(width, heightPng)
.resize(width, heightPng, jimp.RESIZE_BICUBIC)
.deflateLevel(6)
.filterType(0)
.getBuffer(jimp.MIME_PNG, function (err) {
Expand All @@ -673,7 +673,7 @@ async.series({
throw err;
} else {
image
.resize(width, heightPng)
.resize(width, heightPng, jimp.RESIZE_BICUBIC)
.deflateLevel(6)
.filterType(0)
.write(outputPng, function (err) {
Expand Down

0 comments on commit bc8f983

Please sign in to comment.