Elxvips
Experimental Elixir bindings to libvips for image processing, since it's supposed to be faster than GraphicsMagick/ImageMagick. It is based on the existing Rust bindings to libVips. To make it work you will require libVips and the rust compiler.
Installation
If available in Hex, the package can be installed
by adding elxvips
to your list of dependencies in mix.exs
:
def deps do
[
{:elxvips, "~> 0.0.9"}
]
end
Example
import Elxvips
from_file( "image.png" )
|> resize( height: 100 )
|> jpg( strip: true )
|> to_file( "output.jpg" )
{ :ok, %ImageFile{} }
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/elxvips.