The responsive-image-resolve
helper provides the image url that fits for the current screen size. The first parameter is the name of the origin image.
Optional named arguments are:
size
: the target width invw
. Has a default value of100
, so it can be omitted.format
: image format. By default, the format of the original source file.