Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.
 
 

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mirage

Image manipulation library for Elixir.

This library provides a Rust implemented NIF which currently supports resizing and compositing images.

Installation

Because this library is partially implemented in Rust, you will need to have the Rust toolchain installed on your system.

Install Rust

curl https://sh.rustup.rs -sSf | sh

Add package to your mix.exs

If available in Hex, the package can be installed by adding mirage to your list of dependencies in mix.exs:

def deps do
  [
    {:mirage, "~> 0.1.0"}
  ]
end

Resizing Example

{_, image} = Mirage.Image.read!("input.jpg")

image
|> Mirage.resize_to_fill(100, 100)
|> Mirage.Image.write!("output.png")

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mirage.

About

Image manipulation package for Elixir

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages