View Source PlugImageProcessing (plug_image_processing v0.2.2)

Link to this section Summary

Link to this section Types

Link to this section 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(), map(), PlugImageProcessing.Operation.t(), map()) ::
  String.t()
Link to this function

get_image(params, config)

View Source
@spec get_image(map(), config()) ::
  {:ok, image(), String.t() | nil, String.t()} | {: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()}