
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
webgl-distort
Advanced tools
WebGL-based image distortion library for perspectival/projective transforms, useful in aerial imagery processing
A 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://github.com/publiclab/mapknitter) or its interface core library, Leaflet.DistortableImage, where users could individually download their distorted images at full resolution for print or other uses.
Try this out in the demo at https://jywarren.github.io/webgl-distort
Eventually, 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).
This makes use of the glfx.js library.
Current usage is:
<img id="img" src="examples/example-1024.jpg" />
<script>
(function() {
warpWebGl(
'img',
[0, 0, 1023, 0, 1023, 767, 0, 767], // matrix 1 (before) corner coordinates, NW, NE, SE, SW
[0, 100, 1023, -50, 1223, 867, 100, 767] // matrix 2 (after) corner coordinates
);
})();
</script>
FAQs
WebGL-based image distortion library for perspectival/projective transforms, useful in aerial imagery processing
The npm package webgl-distort receives a total of 1,157 weekly downloads. As such, webgl-distort popularity was classified as popular.
We found that webgl-distort demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.