How to install the Python graphics processing library Python Imaging library (PIL) __python

Source: Internet
Author: User

The image is processed in Python using the PIL library, which can be used for some of the most common operations of pictures, such as resizing, formatting, color, rotation, and so on.

First you have to install Python (no introduction here).

After you install Python, it's very easy to install the PIL library, just follow the steps below

1, download PIL source Kit (because this package supports all platforms) imaging--1.1.6.tar.gz
Url:http://www.pythonware.com/products/pil/index.htm

2, decompression package TAR-ZXVF imaging-1.1.6.tar.gz

3, into the Unpacked directory CD Imaging-1.1.6

4, build Pakage:python setup.py build_ext-i

5, testing; Python selftest.py

6. Install Python setup.py install

After you perform the above actions, you can use the import image directly in the program using the image class in PiL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.