1
0
Fork 0
mirror of synced 2024-06-27 02:30:34 +12:00

Change the scaling filter for 1.6x

This commit is contained in:
nagadomi 2015-11-22 20:22:46 +09:00
parent df65e9913a
commit ac5b18e4da

View file

@ -178,10 +178,7 @@ function APIHandler:post()
x = convert(x, {method = "scale", style = style, prefix = style .. "_scale_" .. hash}) x = convert(x, {method = "scale", style = style, prefix = style .. "_scale_" .. hash})
end end
if scale == 1 then if scale == 1 then
x = iproc.scale_with_gamma22(x, x = iproc.scale(x, x:size(3) * (1.6 / 2.0), x:size(2) * (1.6 / 2.0), "Sinc")
math.floor(x:size(3) * (1.6 / 2.0) + 0.5),
math.floor(x:size(2) * (1.6 / 2.0) + 0.5),
"Lanczos")
end end
end end
if white_noise == 1 then if white_noise == 1 then