Optipng v0.1.0 Optipng View Source

Optipng use the command line optipng to optimise images. To use this module, make sure you have optipng executable in you $PATH.

Link to this section Summary

Functions

Receive raw file content and invoke optipng to compress it, returning the compressed file content

Start a new process and optimise raw file content. When finished, the process will send result to the from process

Link to this section Functions

Link to this function optimise(raw) View Source
optimise(binary()) :: {:ok, binary()}

Receive raw file content and invoke optipng to compress it, returning the compressed file content

Link to this function optimise(raw, from) View Source
optimise(binary(), pid()) :: pid()

Start a new process and optimise raw file content. When finished, the process will send result to the from process.