Python 2D Image Generation

What are some of the best image creation libraries in Python? If I were to implement GOTCHA (for example, sake), in order to manipulate the image at the pixel level, what would my parameters be? Ideally, I would like to save the resulting image as a low resolution jpeg, but this is just a wish, I will agree to any common image format.

Thank you for your attention.

+3
source share
3 answers

The Python Image Library (PIL) is a Python actual image management library. You can find it here here either via easy_install or pip if you have them.

Edit: PIL did not update after a while, but it was forked and maintained under the name pillow . Just install it in the shell:

pip install Pillow

The operators importare still the same as PIL (e.g. from PIL import image) and backward compatible.

+8
source

( .png .jpg), (PyCairo, ). . , , PIL .

+1

Pillow is a PIL plug that is still actively developing. Although PIL is not dead, several years have passed since the last release.

0
source

Source: https://habr.com/ru/post/1766687/


All Articles