Packages

Eikōn is an Elixir library providing a read-only interface for image files.

Current section

Files

Jump to
eikon lib eikon.ex
Raw

lib/eikon.ex

defmodule Eikon do
@moduledoc """
Eikōn is an Elixir library providing a read-only interface for image files.
It currently supports the following formats:
* PNG
* GIF
"""
end
defmodule Eikon.Parser do
@moduledoc false
@callback parse(bitstring) :: {:ok, struct} | {:error, term}
@callback parse!(bitstring) :: struct | no_return
@callback magic?(bitstring) :: boolean
@callback content(bitstring) :: {:ok, bitstring} | {:error, term}
@callback content!(bitstring) :: bitstring | no_return
@callback infos(bitstring) :: struct
end