Vibe.Image.Resize (vibe v0.2.1)

Copy Markdown View Source

Resize images through pluggable supervised command backends.

Summary

Types

backend()

@type backend() :: module()

Functions

backends()

@spec backends() :: [backend()]

needs_resize?(image, opts \\ [])

@spec needs_resize?(
  map(),
  keyword()
) :: boolean()

resize(image, opts \\ [])

@spec resize(
  map(),
  keyword()
) :: {:ok, map()} | {:error, term()}

resize!(image, opts \\ [])

@spec resize!(
  map(),
  keyword()
) :: map()