Image.Options.Thumbnail (image v0.59.0)

View Source

Options and option validation for Image.thumbnail/3.

Summary

Types

Options applicable to Image.thumbnail/3

Types

resize_dimension()

@type resize_dimension() :: :width | :height | :both

thumbnail_options()

@type thumbnail_options() :: [
  autorotate: boolean(),
  intent: Image.render_intent(),
  export_icc_profile: Image.Color.icc_profile(),
  import_icc_profile: Image.Color.icc_profile(),
  linear: boolean(),
  resize: resize_dimension(),
  height: pos_integer(),
  crop: Image.Options.Crop.crop_focus(),
  fit: :fill | :contain | :cover
]

Options applicable to Image.thumbnail/3

Functions

validate_options(options)

Validate the options for Image.resize/2.

See Image.Options.Resize.resize_options/0.