Wand exposes MagickWand to Python via ctypes, with documented image read, write, and transform operations.
Overview
Wand is a Python library that binds to ImageMagick’s MagickWand API through ctypes rather than a custom C extension. The stated goal is a Pythonic, modern interface with documentation, while remaining compatible with PyPy because ctypes avoids a compiled Python C API layer.
The package implements the MagickWand API surface so Python code can open images from files or streams, clone and resize them, apply effects and transforms, draw shapes and text, handle layers and montage, read EXIF, and write output in multiple formats. Installation is typically through pip, and runtime use requires the MagickWand library to be present on the system.
Documentation covers platform-specific ImageMagick setup on Debian, Fedora, macOS, Windows, and related environments, plus linking options when multiple ImageMagick builds exist. Wand fits projects that need scripted or programmatic image processing inside Python without calling ImageMagick command-line tools directly.
Compared with other Python bindings mentioned in its docs, Wand emphasizes ctypes-based binding, pip installation, and breadth of MagickWand coverage.
Key features
- Full MagickWand API coverage
- ctypes binding for CPython and PyPy
- Image read, write, and conversion
- Resize, crop, and effects
- Drawing and text on images
- Layer and montage handling
- EXIF and profile support
Use cases
- Automated image resizing in Python
- Batch format conversion
- Applying filters and effects
- Generating thumbnails or montages