Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.
/ mirage Public archive
forked from scrogson/mirage

Image manipulation package for Elixir

License

Notifications You must be signed in to change notification settings

joydrive/mirage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 75.1%
  • Rust 24.9%