View Source Image.Kino (image v0.55.2)
Helper functions to simplify rendering images in Kino.
Summary
Functions
@spec show(image :: Vix.Vips.Image.t(), options :: Keyword.t()) :: Vix.Vips.Image.t()
Renders an image in Kino,
Arguments
image
is anyVix.Vips.Image.t/0
.options
is a keyword list of options.
Options
:max_height
determines the maximum height for the rendered image. The aspect ratio of the rendered image is unchanged. The default is200
.
Returns
maybe_resized_image
of typeKino.Image.t/0
.