I
I
ilya_ya2018-05-28 12:14:08
Python
ilya_ya, 2018-05-28 12:14:08

How to distort an image using the PIL library?

Hello. There is a task to make a bot that will distort images, much like plastic in Photoshop.

spoiler
5b0bc7aad8f96168441177.jpeg
from PIL import Image
img = Image.open('img.jpg')
pix = img.load()#выгрузить пиксели в словарь - pix[длина,ширина]

help me please...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-05-28
@dimonchik2013

https://pillow.readthedocs.io/en/5.0.0/reference/I...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question