Erlang module for PNG images

I need to create images in PNG format - is there a recommended Erlang module to do that with? Create image, set individual pixels, save to disk.

ChatGPT recommends largerpng - but that seems to be a hallucination…

Add lagerpng as a dependency in your Erlang project. You can include it in your rebar.config or mix.exs file, depending on whether you’re using Rebar3 or Mix as your build tool. Here’s an example for Rebar3:

erlangCopy code

{deps, [
  {lagerpng, "1.0.0"}
]}.

Have you had a look at: https://hex.pm/packages/png
First pure erlang result on hem

1 Like

eimp maybe? Haven’t used it yet so I can’t tell if that’s what you’re looking for, but that came OTOH.

1 Like