Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dpostolachi/gmex
GraphicsMagick wrapper for Elixir.
https://github.com/dpostolachi/gmex
elixir graphicsmagick graphicsmagick-wrapper
Last synced: about 1 month ago
JSON representation
GraphicsMagick wrapper for Elixir.
- Host: GitHub
- URL: https://github.com/dpostolachi/gmex
- Owner: dpostolachi
- License: mit
- Created: 2018-06-18T08:58:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-18T13:32:45.000Z (over 4 years ago)
- Last Synced: 2024-09-28T17:20:55.485Z (about 2 months ago)
- Topics: elixir, graphicsmagick, graphicsmagick-wrapper
- Language: Elixir
- Size: 264 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gmex
[![Build Status](https://travis-ci.org/dpostolachi/gmex.png?branch=master)](https://travis-ci.org/dpostolachi/gmex)
A simple GraphicsMagick wrapper for Elixir.
## Documentation
Documentation is available here: [https://hexdocs.pm/gmex/Gmex.html](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`:```elixir
def deps do
[
{:gmex, "~> 0.1.7"}
]
end
```## Usage example
```elixir
import Gmex
Gmex.open( "someimage.png" )
|> options( negate: true, resize: { 50, 50 }, strip: true, format: "jpg" )
|> save( "newimage.jpg" )
```## Resizing
```elixir
import Gmex
Gmex.open( "someimage.png" )
|> resize( width: 300, height: 200, type: :fit )
|> save( "resized.jpg" )
```Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/gmex](https://hexdocs.pm/gmex).