Registry / data / pillow-simd

pillow-simd

JSON →
library9.5.0.post2pypypiunverified

Pillow-SIMD is a fork of Pillow (Python Imaging Library) that adds SIMD (Single Instruction Multiple Data) optimizations for faster image processing on supporting CPUs. Current version is 9.5.0.post2, built on Pillow 9.5.0. It requires Python >=3.7 and is maintained as a drop-in replacement for Pillow with performance improvements for common operations like resizing, filtering, and color space conversion.

pip install pillow-simd
INSTALL
IMPORT
SIG · PILLOW-SIMD
P
pillow-simd
datapythonv9.5.0.post2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Image
from PIL import Image
import pillow; from pillow import Image
The module is always 'PIL', regardless of which fork is installed.
ImageFilter
from PIL import ImageFilter

Basic image resize using pillow-simd. The API is identical to Pillow; SIMD optimizations are applied automatically.

from PIL import Image # Open an image img = Image.open('example.jpg') # Resize using the optimized LANCZOS filter resized = img.resize((300, 300), Image.LANCZOS) # Save resized.save('output.jpg') # For SIMD-accelerated operations, the same API works. # Ensure you're using pillow-simd, not standard Pillow. print('Pillow-SIMD version:', Image.__version__)
Debug
Known issues
gotchaIf standard Pillow is installed, installing pillow-simd will overwrite it. Both cannot coexist. Check that your environment uses pillow-simd by checking Image.__version__.
fix
Use 'pip install pillow-simd --force-reinstall' to ensure pillow-simd is installed. Verify with 'python -c "from PIL import Image; print(Image.__version__)"'.
affects: all
gotchaPillow-SIMD is built with specific CPU instruction sets (SSE, AVX2). If your CPU does not support them, the library will fall back to standard Pillow code. Performance gains may not be realized.
fix
Check CPU support using 'cpuid' or run a benchmark. If no SIMD support, consider using standard Pillow instead.
affects: all
breakingPillow-SIMD 9.5.0 is based on Pillow 9.5.0 and inherits all breaking changes from that version. Notably, some deprecated constants were removed (e.g., 'NEAREST' replaced by 'Resampling.NEAREST').
fix
Use 'from PIL import Image' and reference resampling filters via 'Image.Resampling.<FILTER>' instead of bare constants.
affects: >=9.0.0
Upgrade
Version history
9.5.0.post2latest on PyPI · released Sep 23, 2024
Audit
Dependencies
pillowrequiredPillow-SIMD is a fork. Installing pillow-simd overrides the standard Pillow package. Do not install both.
Agent activity
2 hits · last 30 days
node
2
Resources
pillow-simd — pip install pillow-simd · libregistry