If I downscale an image using lanczos filter in Affinity Photo it has great quality compared to the linear filter.
There was once a Lanczos filter option in SKIA:
Why was it removed? Will it ever come back?
I find downscaled images using SKIA not looking very good.
The mitchell & catmull_rom filters are no replacement.
They look very blocky, because they don't seem to support midmaps.
(Maybe that's an skiko issue, not sure about that.)
I had those blocks on linear to until I figured out that I need to specify a MipmapMode.
Using skiko, a Kotlin SKIA wrapper, my code looks like this:
val bitmap = Bitmap()
bitmap.allocN32Pixels(thumbnailSize.width, thumbnailSize.height)
this.scalePixels(bitmap.peekPixels()!!, FilterMipmap(FilterMode.LINEAR, MipmapMode.LINEAR), false)
val downscaledImage = Image.makeFromBitmap(bitmap)
How are the plans for the Lanczos filter?