Is there any plan to add high tap (lobe) count Spline filters and the EWA version of them?
Spline filter I refer here is the one you can find in mpv (Spline36/64) or you can use with ffmpeg's -vf zscale.
I think a typical result of spline36/64 resizing is as sharp as Lanczos and has less ringing and halo artifacts.
Here's an example script for spline36 resizing in the linear space using IM and ffmpeg's -vf zscale.
(you need "zimg" library and --with-zimg configured build of ffmpeg to use "zscale" filter: https://github.com/sekrit-twc/zimg)
Code: Select all
new_width="500"
new_height="-1"
filter="f=spline36:r=1:p=unspecified:t=linear:m=unspecified:rin=full:pin=unspecified:tin=linear:min=unspecified:agamma=0"
convert in.png -colorspace RGB -set colorspace sRGB -depth 16 ppm:- | \
ffmpeg -i - -vf zscale=$new_width:$new_height:$filter -f image2pipe -vcodec ppm - | \
convert - -set colorspace RGB -colorspace sRGB -depth 8 out.png


