B
B
ban_machine_228_eng2021-02-08 01:22:59
Canvas
ban_machine_228_eng, 2021-02-08 01:22:59

How to make a cake (distortion) of a photo according to a pattern?

There is an entertaining bot for VKontakte and Telegram "Zheka". I was extremely interested in one of its functions. He knows how to transform areas of the photo in every possible way, thereby forming a funny distortion. Each time the photos are the same, which means that he acts in a certain pattern.
602067fe95d00297523506.jpeg
Is it possible to implement this on Canvas or some module?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
2
2CHEVSKII, 2021-02-08
@2chevskii

Well, as an option - here https://www.npmjs.com/package/gm
I haven't tried it myself, but it fits the description, read the docs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question