Image.Kino (image v0.62.0)
View SourceHelper 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
imageis anyVix.Vips.Image.t/0.optionsis a keyword list of options.
Options
:max_heightdetermines the maximum height for the rendered image. The aspect ratio of the rendered image is unchanged. The default is200.
Returns
maybe_resized_imageof typeKino.Image.t/0.