VOOZH about

URL: https://www.geeksforgeeks.org/python/python-wand-an-overview/

⇱ Python Wand – An Overview - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Python Wand – An Overview

Last Updated : 12 Jul, 2025
The Wand is an Imagick library for python. It supports the functionalities of Imagick API in Python 2.6, 2.7, 3.3+, and PyPy.This library not only helps in processing the images but also provides valuable functionalities for Machine Learning codes using NumPy. Installation: By Pip:
$ pip install Wand
As the wand is an Imagick API, so we require Imagick dependencies. Imagick's Installation:
  • For Ubuntu/Debian:
    $ sudo apt-get install libmagickwand-dev
  • For Mac (By Brew Installer)
    $ brew install imagemagick
    Installation of MacPorts
    $ sudo port install imagemagick
    Note: If Python is not installed using MacPorts, we need to export MAGICK_HOME.
    $ export MAGICK_HOME=/opt/local
  • Example 1: Reading an Image: Input Image: geeksforgeeks.png 👁 geeksforgeeks
    Output:
    ('Width of the image:', 667L)
    ('Height of the image:', 184L)
    
    Example 2: Blur an Image: Output: 👁 blur-geeksforgeeks-pyhton
    Example 3: Transfer the image Output: 👁 flip-geeksforgeeks
    Example 4: Drawing:
Comment
Article Tags: