From 118b17aa2ff936558e98b7c85afd3eddc6cda1a2 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Mon, 24 Nov 2014 11:52:48 +0000 Subject: [PATCH] Apply less blur before affine reduction #121 --- src/resize.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resize.cc b/src/resize.cc index 4c829130..b541ecdb 100755 --- a/src/resize.cc +++ b/src/resize.cc @@ -368,7 +368,7 @@ class ResizeWorker : public NanAsyncWorker { // Apply Gaussian blur before large affine reductions if (residual < 1.0) { // Calculate standard deviation - double sigma = ((1.0 / residual) - 0.5) / 1.5; + double sigma = ((1.0 / residual) - 0.4) / 3.0; if (sigma >= 0.3) { // Create Gaussian function for standard deviation VipsImage *gaussian;