Skip to content

A tiny image library using stb_image as the backend

License

Notifications You must be signed in to change notification settings

elixir-nx/stb_image

Folders and files

NameName
Last commit message
Last commit date
Feb 10, 2025
Feb 1, 2025
Mar 10, 2024
Mar 10, 2024
Feb 1, 2025
Jan 10, 2022
Dec 4, 2022
Jan 7, 2022
Mar 10, 2024
Jul 29, 2022
Jun 17, 2024
Dec 4, 2022
Feb 1, 2025
Jun 17, 2024

Repository files navigation

StbImage

Hex.pm

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.