Answer the question
In order to leave comments, you need to log in
How to crop and overlay two images on canvas?
Can you please tell me how to do this on canvas? Those. take a picture, crop it in a shape (for example, a circle) and draw another picture on top of it, also cropped to a certain shape?
I tried the globalCompositeOperation property, but I can’t manage to overlay the second picture (it is superimposed on top of the first one and there’s no way to crop each picture separately).
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question