https://github.com/mybigday/image-codecs
Pure JS cross platform image encoder/decoder.
https://github.com/mybigday/image-codecs
Last synced: 5 months ago
JSON representation
Pure JS cross platform image encoder/decoder.
- Host: GitHub
- URL: https://github.com/mybigday/image-codecs
- Owner: mybigday
- Created: 2024-02-25T15:54:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-03T21:15:58.000Z (7 months ago)
- Last Synced: 2025-05-01T08:07:43.562Z (5 months ago)
- Language: JavaScript
- Size: 85 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# image-codecs
Pure JS cross platform image encoder/decoder.
## Usage
```js
import { encode, decode } from 'image-codecs';const imageData = decode(buffer);
// Return: { width, height, data: Uint8Array }const buffer = encode(imageData, 'jpeg'); // or 'bmp', 'png'
// Return: Buffer
```## Supported formats
- JPEG
- BMP
- PNG