This is a bit OT, but if you only care about downscaling, cropping and&#x2F;or rotating JPEG images by multiples of 90 degrees, you might also want to take a look at jpegtran-cffi (<a href="https:&#x2F;&#x2F;github.com&#x2F;jbaiter&#x2F;jpegtran-cffi" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jbaiter&#x2F;jpegtran-cffi</a>).<p>It does all of the above operations without decoding the image, giving a significant speed boost.<p>I just benchmarked it against pillow-smd on my laptop (SSE4 only) and it&#x27;s 1.3-1.8x faster, depending on the operation.