Skip to content

dpostolachi/gmex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gmex

Build Status

A simple GraphicsMagick wrapper for Elixir.

Documentation

Documentation is available here: https://hexdocs.pm/gmex/Gmex.html

Requirements

Installed graphicsmagick.

Elixir ~> 1.2

Erlang/OTP ~> 18.0

Installation

The package can be installed by adding gmex to your list of dependencies in mix.exs:

def deps do
  [
    {:gmex, "~> 0.1.7"}
  ]
end

Usage example

import Gmex
Gmex.open( "someimage.png" )
    |> options( negate: true, resize: { 50, 50 }, strip: true, format: "jpg" )
    |> save( "newimage.jpg" )

Resizing

import Gmex
Gmex.open( "someimage.png" )
    |> resize( width: 300, height: 200, type: :fit )
    |> save( "resized.jpg" )

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

Releases

No releases published

Packages

 
 
 

Languages