https://github.com/pertsevds/mogrify_draw
A wrapper of the imagemagick draw functionality on top of mogrify
https://github.com/pertsevds/mogrify_draw
Last synced: 2 months ago
JSON representation
A wrapper of the imagemagick draw functionality on top of mogrify
- Host: GitHub
- URL: https://github.com/pertsevds/mogrify_draw
- Owner: pertsevds
- License: mit
- Created: 2023-03-25T19:09:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-25T19:10:34.000Z (about 2 years ago)
- Last Synced: 2025-01-26T04:42:56.000Z (4 months ago)
- Language: Elixir
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MogrifyDraw
A wrapper of the imagemagick draw functionality on top of mogrify
## Installation
```elixir
def deps do
[
{:mogrify_draw, git: "[email protected]:pertsevds/mogrify_draw.git"}
]
end
```mix deps.get
## Examples
```elixir
import Mogrify%Mogrify.Image{path: "test.png", ext: "png"}
|> custom("size", "280x280")
|> canvas("white")
|> custom("fill", "blue")
|> MogrifyDraw.circle(140,140,100,100)
|> custom("fill", "yellow")
|> MogrifyDraw.circle(140,140,140,100)
|> create(path: ".")
```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 .