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

Options and option validation for Image.thumbnail/3.

Summary

Types

Options applicable to Image.thumbnail/3

Types

@type resize_dimension() :: :width | :height | :both
@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