Home
Yegor Pelykh edited this page May 10, 2024
·
6 revisions
image-in-browser is an NPM package providing the ability to load, manipulate and save images of various image file formats.
- works both in Node.js and in the browser (no need for server-side Node.js)
- written entirely in Typescript with transpiling into Javascript
- fully compatible with the ES6 standard and provides typings for use with Typescript
- may be used as an NPM package or as a compact Javascript minified file
This library may be especially useful when you need to work with static or animated images directly in the browser code when the code is isolated from the system it's running on.
Since this library is written entirely in Typescript and is not a native executable library, its performance will not be as fast as a the native library.
The following formats are currently supported for encoding / decoding:
Read / Write
- BMP
- GIF, animated GIF
- ICO
- JPG
- PNG, animated APNG
- TGA
- PVR
- TIFF
Read Only
- PNM, PBM, PGM, PPM
- PSD
- WEBP, animated WEBP
Write Only
- CUR