View Source PlugImageProcessing (plug_image_processing v0.6.0)

Summary

Types

Functions

Link to this function

cast_operation_name(name, config)

View Source
@spec cast_operation_name(String.t(), config()) ::
  {:ok, String.t()} | {:error, atom()}
Link to this function

generate_url(url, config, operation, query)

View Source
@spec generate_url(String.t(), Enumerable.t(), atom(), map()) :: String.t()
Link to this function

get_image(params, operation_name, config)

View Source
@spec get_image(map(), String.t(), config()) ::
  {:ok, image(), String.t() | nil, String.t()} | {:error, atom()}
@spec info(image()) :: {:ok, image_metadata()} | {:error, atom()}
Link to this function

operations(image, operation_name, params, config)

View Source
@spec operations(image(), String.t(), map(), config()) ::
  {:ok, image()} | {:error, atom()}
Link to this function

params_operations(image, params, config)

View Source
@spec params_operations(image(), map(), config()) :: {:ok, image()} | {:error, atom()}
Link to this function

run_middlewares(conn, config)

View Source
@spec run_middlewares(Plug.Conn.t(), map()) :: Plug.Conn.t()
Link to this function

write_to_buffer(image, file_extension)

View Source
@spec write_to_buffer(image(), String.t()) :: {:ok, binary()} | {:error, term()}