Skip to content

What is Lens?

Lens is JavaScript library for raster image distortions using reverse pixel mapping technique.

Generally, Lens is a refactored port of ImageMagick's DistortImage(), ResamplePixelColor() and some other functions.

Lens is cross environment and works in browsers and in Node.js.

What's new in v2?

  • Significant performance improvements - from 2x to more than 10x in certain cases.
  • Added Polynomial distortion.
  • Improved TypeScript support.
  • Smaller size.
  • Ability to import as native ES module.