https://github.com/blackaslight/img
Image format encoders/decoders with Web API integration and sync/streaming support.
https://github.com/blackaslight/img
apng avif browser bun cloudflare-workers deno gif image image-processing javscript jpeg nodejs png qoi streaming svg typescript webp
Last synced: 3 months ago
JSON representation
Image format encoders/decoders with Web API integration and sync/streaming support.
- Host: GitHub
- URL: https://github.com/blackaslight/img
- Owner: BlackAsLight
- License: mit
- Created: 2024-09-24T22:58:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-15T10:27:16.000Z (4 months ago)
- Last Synced: 2025-06-15T10:50:56.194Z (4 months ago)
- Topics: apng, avif, browser, bun, cloudflare-workers, deno, gif, image, image-processing, javscript, jpeg, nodejs, png, qoi, streaming, svg, typescript, webp
- Language: TypeScript
- Homepage: https://jsr.io/@img
- Size: 139 KB
- Stars: 26
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Img
Img is a repo containing implemenetations, made from scratch, of various image
formats offering the ability to encode and decode between them, and integrate
smoothly with various Web APIs like the Canvas. Where possible, we offer both
sync and streaming encoders/decoders.## Missing a format?
If this repo is missing a format you'd like to work with, simply create an issue
suggesting the format, along with a link to the standard, specifcation or some
document that is essentally the source of truth for that format. Do that and it
might get an implementation here.## Formats
| Package | Latest Version | Spec |
| ------------------------------------- | -------------------------------------- | ------------------------------------------------------------ |
| [@img/apng](https://jsr.io/@img/apng) | Not Implemented Yet | https://wiki.mozilla.org/APNG_Specification |
| [@img/avif](https://jsr.io/@img/avif) | Not Implemented Yet | https://aomediacodec.github.io/av1-avif/v1.1.0.html |
| [@img/gif](https://jsr.io/@img/gif) | Not Implemented Yet | https://www.w3.org/Graphics/GIF/spec-gif89a.txt |
| [@img/jpeg](https://jsr.io/@img/jpeg) | Not Implemented Yet | https://www.w3.org/Graphics/JPEG/jfif3.pdf |
| [@img/png](https://jsr.io/@img/png) |  | https://www.w3.org/TR/2003/REC-PNG-20031110/ |
| [@img/qoi](https://jsr.io/@img/qoi) |  | https://qoiformat.org/qoi-specification.pdf |
| [@img/svg](https://jsr.io/@img/svg) | Not Implemented Yet | https://www.w3.org/TR/SVG2/ |
| [@img/webp](https://jsr.io/@img/webp) | Not Implemented Yet | https://developers.google.com/speed/webp/docs/riff_container |## Try it yourself
Quickly convert images from one of the above formats to another locally in your
browser: https://blackaslight.github.io/img/## Coverage
[Coverage of Repo](https://blackaslight.github.io/img/coverage)