I sell mugs and decided to make an automatic printing of a mug on its preview. To do this, transform the original rectangular image. I searched and found only an option where pixel-by-pixel copy the original image and create its perspective, it turns out a little long) Can you please tell me, what methods can this be done in php? Or on node.js, if it's easier there. Thank you in advance

enter image description here

Or even

enter image description here

    0