# ImageRs-Elixir
A tiny Elixir library for image decoding task using [image_rs](https://github.com/image-rs/image) as the backend.
| OS | Arch | Build Status |
|------------------|--------|--------------|
| Ubuntu 20.04 | x86_64 |[](https://github.com/cocoa-xu/image_rs/actions/workflows/linux.yml) |
| macOS 11 | arm64/x86_64 | [](https://github.com/cocoa-xu/image_rs/actions/workflows/macos.yml) |
There is an alternative version of this repo, [stb_image](https://github.com/cocoa-xu/stb_image), which uses [stb_image.h](https://github.com/nothings/stb/blob/master/stb_image.h) as the backend. It is implemented in C++, so you only need a working C++ compiler. But the number of supported image formats are less than the `image_rs` backend.
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `image_rs` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:image_rs, "~> 0.1.0", github: "cocoa-xu/image_rs"}
]
end
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/image_rs](https://hexdocs.pm/image_rs).