{"_id":"webgl-distort","_rev":"4-afc924c99f6f88bde55b4d4cf8bb4256","name":"webgl-distort","description":"WebGL-based image distortion library for perspectival/projective transforms, useful in aerial imagery processing","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"webgl-distort","version":"0.0.1","description":"WebGL-based image distortion library for perspectival/projective transforms, useful in aerial imagery processing","repository":{"type":"git","url":"git+https://github.com/jywarren/webgl-distort.git"},"keywords":["distortion","perspective","webgl","maps"],"author":{"name":"Jeff Warren"},"license":"MIT","bugs":{"url":"https://github.com/jywarren/webgl-distort/issues"},"homepage":"https://github.com/jywarren/webgl-distort","devDependencies":{"glfx-js":"git+https://github.com/jywarren/glfx.js.git"},"gitHead":"563cf1b7eba6c5fe4e65a371f8b6b5a3afcfc83b","_id":"webgl-distort@0.0.1","scripts":{},"_shasum":"a1fa5ea0d00efff63a9300ebd31543260bac353a","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"jywarren","email":"jeff@unterbahn.com"},"dist":{"shasum":"a1fa5ea0d00efff63a9300ebd31543260bac353a","tarball":"https://registry.npmjs.org/webgl-distort/-/webgl-distort-0.0.1.tgz","integrity":"sha512-OV0PHOxkB4TdeFxFuZDnrtsQ3RiFV5JMO8qrkhLC63Brs/9S6t34UW//V8Fcv5mKB7Uude6EPAvEIwuK5dRyZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGeCG5KmC8yTqCM5NYta/1EKKyihxigBoVD8xqEYBIosAiB2vafSJj4VxjLN/uKXkjZrnYbqmhdHamNgeoaC3wrzlQ=="}]},"maintainers":[{"name":"jywarren","email":"jeff@unterbahn.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/webgl-distort-0.0.1.tgz_1458497097233_0.1913099775556475"}},"0.0.2":{"name":"webgl-distort","version":"0.0.2","description":"WebGL-based image distortion library for perspectival/projective transforms, useful in aerial imagery processing","repository":{"type":"git","url":"git+https://github.com/jywarren/webgl-distort.git"},"keywords":["distortion","perspective","webgl","maps"],"author":{"name":"Jeff Warren"},"license":"MIT","bugs":{"url":"https://github.com/jywarren/webgl-distort/issues"},"homepage":"https://github.com/jywarren/webgl-distort","devDependencies":{"glfx-js":"git+https://github.com/jywarren/glfx.js.git"},"gitHead":"3e0f5a2c0bf5a7f7d00dec6b8e1f960f40cf4e06","_id":"webgl-distort@0.0.2","scripts":{},"_shasum":"80d2f61efc4aece28e7a1ff1375e14aac6d06f36","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"jywarren","email":"jeff@unterbahn.com"},"dist":{"shasum":"80d2f61efc4aece28e7a1ff1375e14aac6d06f36","tarball":"https://registry.npmjs.org/webgl-distort/-/webgl-distort-0.0.2.tgz","integrity":"sha512-ega1ErSsqQ7MXWreYkxwxs5TTBYXJb538Gsqyi+aknwHE9bUZx31EoWuUJWD2jfiOV5BMdmrmfqYGrTTAvrO6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDb/2/zt3xN9Xg+2DI9PNKzXDHhx9k9mZJY+ICJphBvHwIhAKKmvBPWeNy5otjOTyI/qy4T7NPEnWIppIrh+m3JrzFC"}]},"maintainers":[{"name":"jywarren","email":"jeff@unterbahn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webgl-distort-0.0.2.tgz_1515424912787_0.8383941617794335"}}},"readme":"webgl-distort\n====\n\nA prototype, demonstration project to test full-resolution perspective transforms done in-browser on the client side using WebGL. This would be useful for [MapKnitter](https://mapknitter.org) (https://github.com/publiclab/mapknitter) or its interface core library, [Leaflet.DistortableImage](https://github.com/publiclab/Leaflet.DistortableImage), where users could individually download their distorted images at full resolution for print or other uses. \n\nTry this out in the demo at https://jywarren.github.io/webgl-distort\n\nEventually, it could be packaged as a bower-installable library which simply accepts an image URL and a begin and end matrix, and initiates a download (so as not to cause the browser to render the large dataURL).\n\nThis makes use of the [glfx.js](https://github.com/evanw/glfx.js) library. \n\nCurrent usage is:\n\n```html\n  <img id=\"img\" src=\"examples/example-1024.jpg\" />\n\n  <script>\n    (function() {\n \n      warpWebGl(\n        'img',\n        [0, 0,   1023, 0,    1023, 767, 0,   767], // matrix 1 (before) corner coordinates, NW, NE, SE, SW\n        [0, 100, 1023, -50,  1223, 867, 100, 767]  // matrix 2 (after) corner coordinates\n      );\n \n    })();\n  </script>\n```\n","maintainers":[{"name":"jywarren","email":"jeff@unterbahn.com"}],"time":{"modified":"2022-06-28T23:22:26.192Z","created":"2016-03-20T18:04:59.410Z","0.0.1":"2016-03-20T18:04:59.410Z","0.0.2":"2018-01-08T15:21:53.713Z"},"homepage":"https://github.com/jywarren/webgl-distort","keywords":["distortion","perspective","webgl","maps"],"repository":{"type":"git","url":"git+https://github.com/jywarren/webgl-distort.git"},"author":{"name":"Jeff Warren"},"bugs":{"url":"https://github.com/jywarren/webgl-distort/issues"},"license":"MIT","readmeFilename":"README.md"}