Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

hermimg

0.2.0 • Public • Published

Hermite-resize

Fast image resize/resample using Hermite filter with JavaScript.

demo: http://viliusle.github.io/miniPaint/
fiddle: http://jsfiddle.net/9g9Nv/96/

Single core:

hermite.js - main function, fastest way.

Multi-core*:

worker-handler.js - function that splits image, sends each peace to resize and combines results
worker-hermite.js - worker, must be in same domain

  • slower than single core, because sharing resources, combining takes additional time. And there are no ways to get CPU count with JS.

Keywords

none

install

npm i hermimg

Downloadsweekly downloads

2

version

0.2.0

license

ISC

last publish

collaborators

  • avatar
Report a vulnerability