View Source Tempel.Variant (Tempel v0.2.2)

Link to this section Summary

Link to this section Functions

@spec create(binary() | File.Stream.t(), nil | maybe_improper_list() | map()) ::
  {:error, any()} | {:ok, binary() | Vix.Vips.Image.t()}

Callback implementation for Tempel.VariantBehaviour.create/2.

Link to this function

resize(image, atom, resize_options)

View Source
@spec resize(
  Vix.Vips.Image.t(),
  :avatar | :resize | :thumbnail,
  nil | maybe_improper_list() | map()
) :: {:error, any()} | Vix.Vips.Image.t()
Link to this function

write(error, write_options)

View Source
@spec write({:error, any()} | Vix.Vips.Image.t(), any()) ::
  {:error, any()} | {:ok, binary() | Vix.Vips.Image.t()}