@chinese-fonts/imagescript
v1.3.1
Published
a deno and browser support version of imagescript
Downloads
2
Maintainers
Readme
ImageScript
zero-dependency JavaScript image manipulation
ImageScript is a zero-dependency alternative to common JavaScript bitmap image manipulation tools. It can achieve much more performant results by utilizing lower-level memory access, less memory copying and WebAssembly / native binaries for decoding and encoding.
It's a fork package of origin repo. It rewrite wasm load code to make one repo running on deno, browser and nodejs.
Features
- Decoding images
- PNGs (grayscale, RGB, indexed colors) with and without alpha channels
- JPEGs (grayscale, RGB, CMYK)
- TIFFs
- Decoding GIFs
- Rendering SVGs
- Rendering vector fonts
- Image manipulation functions (crop , rotate , composite, ...)
- Color manipulation functions (invert , hueShift, ...)
- Color information functions (averageColor , dominantColor, ...)
- Encoding images as PNGs , JPEGs and GIFs
Example
If you have any additional questions, feel free to join the discord support server.