Skip to content

zamith/mogrify_draw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages