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

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 :image_opts is set in opts, it will be passed on to Elixir.Still.Preprocessor.Image.

If :sizes is not set in :image_opts map, it sets sizes as as 25%, 50%, 75% and 100% of the input file's width.