wanadev / perspective.js

Transforms the perspective of an image and draw it on a canvas
Apache License 2.0
136 stars 27 forks source link

Image disappears when you try to flip the image. #7

Open koropuxa opened 5 years ago

koropuxa commented 5 years ago

First, just wanted to say thank you for this awesome script. This is the only one I could find that does a great job at perspective transform without any external libraries! I have one little problem though. When the image is flipped horizontally or vertically, it just disappears. Example: drag 2 left points to the right of the right points (flipping the points horizontally). Ability to flip the image is crucial for my project and I just can't figure this out. Any help appreciated.

flozz commented 5 years ago

Hello,

your issue seems to be the same as the one in #1, I will not be able to fix this...

Maybe you can use CSS 3D transform inside an SVG image and then print it on the canvas. This works fine with Firefox but Chrome has issue with this :/