ExOptimizer (ExOptimizer v0.1.1) View Source

ExOptimizer is a tool to optimize pictures by running them through a chain of various image optimization tools.

Link to this section Summary

Link to this section Functions

Link to this function

optimize(path, opts \\ [])

View Source

Specs

optimize(String.t(), List.t()) ::
  {:ok, Map.t()} | {:error, Map.t()} | {:error, :file_not_found}

Optimize a picture

Options:

  • optimizers accepts a list of optimizers (see ExOptimizer.Optimizer) module names or tuples with the module name and the custom options to pass to the binary command.