I would like the same what this post is asking for: Generating initials avatar with Elixir The answer to use Mogrify is not very helpfull. I already got https://github.com/zamith/mogrify_draw/ but it is not generating the text I want. The examplecode
%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: ".")
is creating the image with the circles.
I tried
%Mogrify.Image{path: "test.png", ext: "png"}
|> custom("size", "280x280")
|> canvas("white")
|> Mogrify.Draw.text(10, 10, "Text")
|> create(path: ".")
but this is only creating a blank white picture. Any ideas what I am doing wrong?
Thank you.