View Source Tempel.Variant (Tempel v0.1.0)
Link to this section Summary
Functions
Callback implementation for Tempel.VariantBehaviour.create/2
.
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
.
@spec resize( Vix.Vips.Image.t(), :avatar | :resize | :thumbnail, nil | maybe_improper_list() | map() ) :: {:error, any()} | Vix.Vips.Image.t()
@spec write({:error, any()} | Vix.Vips.Image.t(), any()) :: {:error, any()} | {:ok, binary() | Vix.Vips.Image.t()}