[ANN] Pica - high speed and high quality image resize in JS

425 views
Skip to first unread message

Vitaly Puzrin

unread,
Sep 24, 2014, 7:56:06 AM9/24/14
to nod...@googlegroups.com
https://github.com/nodeca/pica

This project is for browsers, but it's developped with node and will be useful for people who like to build assets with browserify.

As you know, canvas is optimized for speed, and use nearest-neibor interpolation, when you try to downscale image. Sometime that's not acceptable, and we have written `pica`, that implements lanczos3 filter at very high speed. Of cause, it's not as fast as simd-optimized native code, but performance is very well. That can help when you need to reduce image size before upload and so on.

Here is demo http://nodeca.github.io/pica/demo/ to try different images & quality level. It also works at mobile devices.

It should work with all browsers, that have canvas. Also, if webworker available, it will be used to avoid interface freeze, without additional efforts from your side.
Reply all
Reply to author
Forward
0 new messages