The perfect alternative to the Python image library PiL-pillow

Source: Internet
Author: User

The full name of PIL is the Python image library. But it's not good to use. Strictly speaking, I have not been successful. Because there is always the same error (not a big difference). Even a JPEG image can not be displayed, this library for small white users is a bit of a misnomer. Because the small white user to the Linux package (library) The dependency problem is difficult oneself alone to solve independently. There is no way to use this library properly.

Here is Pillow's official website:

Http://pillow.readthedocs.io/en/3.0.x/index.html

It is perfectly possible to use pillow to replace PIL, without concern for the following errors:

Decoder JPEG not available

It's all kinds of mistakes anyway. Open a JPEG file also can not open, PNG seems to also not open.

Then using Apt-get install a lot of related (previously missing) libraries, still can not solve any problems.

So, finally I chose the pillow, gave up the PIL. This one-step demo passes.

Specific installation of pillow can refer to the official website.

I'm using Linux. Specific operating systems can be found on the official web-based instructions, very detailed.

Before installing, remove PiL manually or via the command line tool.

If you have already installed the pillow, you can unload the load. This will solve some inexplicable mistakes.

The perfect alternative to the Python image library PiL-pillow

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.