View Source Image.Options.Avatar (image v0.44.0)

Options and option validation for Image.avatar/2.

Summary

Types

@type avatar_option() ::
  {:size, pos_integer()}
  | {:shape, :circle | :square | :squircle}
  | {:crop, Image.Options.Crop.crop_focus()}
@type avatar_options() :: [avatar_option()]

Functions

Link to this function

validate_options(options)

View Source