瀏覽代碼

Change the scaling filter for 1.6x

nagadomi 9 年之前
父節點
當前提交
ac5b18e4da
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      web.lua

+ 1 - 4
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