During that processes, I decided to make an Elixir poster as well, to celebrate the language I wrote to build the tool.
Take this tool for what it is. It's a utility I hacked together to generate a one-off poster specifically for my needs. It's not a general purpose poster making tool, and may not work for your use case.
I've published this repo as a learning tool and as a supplement to this article. It is not intended to be a quality piece of standlone software.
Read below if you're still intent on giving it a spin:
This is an Elixir project. You'll need Elixir installed before running this application. Check out the Elixir Introduction for help getting up to speed. Once you've got Elixir up and running, and cloned this project locally, proceed to the following steps.
- Scale an image of your choosing to
1.667x1and resize to approximately
300px. As an example, here’s the image I used to generate the Elixir poster.
- Gather the source code you want to use in the poster into a single file.
- From the project root, start an interactive shell (
iex -S mix)
- Call the
ElixirPoster.gofunction. By default, this assumes that your image is called
image.png, and your source file is called
codein the root of the project. These options can be overridden, if desired. See the
- On my machine, with the given source image, it takes approximately 3 seconds to generate the final poster. The final result is an SVG saved to
out.svgin Inkscape, export to PNG, print!
- Put any code you want used in a file
- Put the logo of your choosing in a file,
iex -S mix