10 releases
0.0.10 | Aug 23, 2022 |
---|---|
0.0.9 | May 27, 2022 |
0.0.8 | Jan 3, 2022 |
0.0.6 | Dec 31, 2021 |
#638 in Images
25 downloads per month
49KB
981 lines
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.
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 , WEBPs and GIFs
Example
Check out one of these examples:
- NodeJS: README image generation
- Deno: README image generation
- Browser: Grayscale Conversion Example Page (via CDN)
If you have any additional questions, feel free to join the discord support server.
Dependencies
~18KB