M
M
myqwrtam2019-12-27 17:02:44
Python
myqwrtam, 2019-12-27 17:02:44

How to implement image creation through python?

How can I implement the creation of images through python, as well as their processing ...
A specific example, to make it clear:
For example, there is a two-dimensional array, where each element is a color code of a pixel of a picture, and through a function this array is converted into an image, with the ability scaling (like instead of one element of the array - 4 identical pixels), and you can also convert the image into a two-dimensional array with which you can work ...
Perhaps there are some libraries for this, or for something similar ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2019-12-27
@bacon

Pillow.
Yes, no one scales like that, for a long time there are ready-made heaped algorithms
PS oh, there is also a woodpecker, it didn’t get there in a year How to draw a pixel image in Python?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question