View Source Image.Options.Meme (image v0.55.2)

Options and option validation for Image.meme/2.

Summary

Types

Valid font weights

Options applicable to Image.meme/3

Valid type transforms

Types

@type font_weight() :: :ultralight | :light | :normal | :bold | :ultrabold | :heavy

Valid font weights

@type meme_options() ::
  [
    text: String.t(),
    font: String.t(),
    weight: font_weight(),
    color: Image.Color.t(),
    outline_color: Image.Color.t(),
    justify: boolean(),
    transform: text_transform(),
    width: pos_integer()
  ]
  | map()

Options applicable to Image.meme/3

@type text_transform() :: :capitalize | :upcase | :downcase | :none

Valid type transforms

Functions

Link to this function

validate_options(options)

View Source
Link to this function

validate_options(image, options)

View Source

Validate the options for Image.meme/3.

See Image.Options.Meme.meme_options/0.