lwip icon indicating copy to clipboard operation
lwip copied to clipboard

3D-Transform / Perspective

Open jomo opened this issue 10 years ago • 0 comments

It would be really nice to change an image's perspective, similar to this feature in GIMP: gimp screenshot

The function could look like this:

img.transform([x, y], [x, y], [x, y], [x, y], function(err, image) {
  // do stuff
}

Where each [x, y] is the new position of a corner inside the current image.

Or:

img.transform(a, b, c, d, e, f, function(err, image) {
  // do stuff
}

As used by HTML Canvas' setTransform


There are a bunch of Wikipedia articles about:


  • I believe this is the code used by GIMP
  • There are a lot of implementations when you search around

jomo avatar Apr 26 '15 21:04 jomo