elixir-nx / stb_image

A tiny image library using stb_image as the backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StbImage

A tiny image reader/writer library using stb_image as the backend. See the documentation.

There is an alternative library, image_rs, which uses image_rs as the backend. That backend is implemented in Rust, so you will need a working Rust compiler. But the number of supported image formats is greater than stb_image.

Installation

Add stb_image to your list of dependencies in mix.exs:

def deps do
  [
    {:stb_image, "~> 0.6"}
  ]
end

This library also provides some precompiled binaries for the following platforms:

  • macOS
    • x86_64-apple-darwin
    • aarch64-apple-darwin
  • Linux
    • x86_64-linux-gnu
    • x86_64-linux-musl
    • aarch64-linux-gnu
    • aarch64-linux-musl
    • riscv64-linux-gnu
    • riscv64-linux-musl
  • Windows
    • x86_64-windows-msvc

License

Copyright 2022 Cocoa Xu

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

A tiny image library using stb_image as the backend

License:Apache License 2.0


Languages

Language:Elixir 62.7%Language:C 35.7%Language:Makefile 1.7%