Still.Compiler.ViewHelpers.ResponsiveImage (Still v0.2.0) View Source

Generates a set of images to ensure they are responsive.

See Still.Preprocessor.Image for details on these transformations.

Link to this section Summary

Functions

Returns an image tag with the src and srcset.

Link to this section Functions

Link to this function

render(file, opts \\ [])

View Source

Specs

render(file :: String.t(), list()) :: String.t()

Returns an image tag with the src and srcset.

If :sizes or :transformations are present in opts, they will be passed to Still.Preprocessor.Image.

If :sizes is not set, the default will be 25%, 50%, 75% and 100% of the input file's width.