Pillow-SIMD – Fast, production-ready image resize for x86
Is doing lanczos really faster and&#x2F;or better quality for scaling down than just doing a simple pixel mixing:<p><a href="http:&#x2F;&#x2F;entropymine.com&#x2F;imageworsener&#x2F;pixelmixing&#x2F;" rel="nofollow">http:&#x2F;&#x2F;entropymine.com&#x2F;imageworsener&#x2F;pixelmixing&#x2F;</a><p>I implemented this for my image pipeline:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;pedrocr&#x2F;rawloader&#x2F;blob&#x2F;230432a403a9febb5e5c004780211f7e765130b9&#x2F;src&#x2F;imageops&#x2F;demosaic.rs#L155-L190" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pedrocr&#x2F;rawloader&#x2F;blob&#x2F;230432a403a9febb5e...</a><p>Makes for simple enough code and even before any serious effort at optimization or SIMD it can convert a 3680x2456x4 image in 32bit float (source article is 3x8bit) to 320x200x4 also in 32bit float in about 60ms (across 4 threads in 2 cores on a i5-6200U).