From ac5b18e4da1c1e88c002de5bd0141684c98b59b6 Mon Sep 17 00:00:00 2001 From: nagadomi Date: Sun, 22 Nov 2015 20:22:46 +0900 Subject: [PATCH] Change the scaling filter for 1.6x --- web.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/web.lua b/web.lua index 6e859e7..918d5c0 100644 --- a/web.lua +++ b/web.lua @@ -178,10 +178,7 @@ function APIHandler:post() x = convert(x, {method = "scale", style = style, prefix = style .. "_scale_" .. hash}) end if scale == 1 then - x = iproc.scale_with_gamma22(x, - math.floor(x:size(3) * (1.6 / 2.0) + 0.5), - math.floor(x:size(2) * (1.6 / 2.0) + 0.5), - "Lanczos") + x = iproc.scale(x, x:size(3) * (1.6 / 2.0), x:size(2) * (1.6 / 2.0), "Sinc") end end if white_noise == 1 then