Skip to content
No description, website, or topics provided.
Elixir
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
test
.gitignore
LICENSE.md
README.md
mix.exs
mix.lock

README.md

Mogrify Draw

A wrapper of the imagemagick draw functionality on top of mogrify

Installation

Add this to your mix.exs file, then run mix do deps.get, deps.compile:

def deps do
  [{:mogrify_draw, "~> 0.1.0"}]
end
def application do
  [applications: [:mogrify_draw]]
end

Examples

import Mogrify

%Mogrify.Image{path: "test.png", ext: "png"}
|> custom("size", "280x280")
|> canvas("white")
|> custom("fill", "blue")
|> Mogrify.Draw.circle(140,140,100,100)
|> custom("fill", "yellow")
|> Mogrify.Draw.circle(140,140,140,100)
|> create(path: ".")

License

Mogrify Draw source code is licensed under the MIT License.

You can’t perform that action at this time.