Shrink less, affine more, maintain performance #75

Affects interpolators with 4x4+ window size

e.g. Bicubic, LBB, Nohalo

Introduces blur before large affine

to improve large PNG reductions
This commit is contained in:
Lovell Fuller
2014-11-07 20:04:07 +00:00
parent 7537adf399
commit 47927ef47d
4 changed files with 53 additions and 6 deletions

View File

@@ -17,7 +17,8 @@ describe('Sharpen', function() {
assert.strictEqual('jpeg', info.format);
assert.strictEqual(320, info.width);
assert.strictEqual(240, info.height);
sharp(notSharpened)
sharp(fixtures.inputJpg)
.resize(320, 240)
.sharpen()
.toBuffer(function(err, sharpened, info) {
if (err) throw err;