#options[:img_auto_extensions]=(value) ⇒ Boolean

This option determines whether or not to support specifying images without using a file name extension. If set to true then the image_tag helper will work for images even if you don’t specify an extension, but only if a file exists on disk that has one of the extensions in :img_auto_extensions_order.

Parameters:

  • value (Boolean)

    true or false to enable or disable this feature.

Returns:

  • (Boolean)

    Returns the current value of this option.

#options[:img_auto_extensions_order]=(value) ⇒ Array<String>

This option defines the eligible file name extensions and their precedence when you specify an image without an extension using the image_tag helper. Set this to an array of image file extensions in your desired order of of precedence.

Parameters:

  • value (Array<String>)

    Set to an array of image extensions.

Returns:

  • (Array<String>)

    Returns the current value of this option.

#options[:retina_srcset]=(value) ⇒ Boolean

This option determines whether or not the enhanced image_tag helper will be used to include an @2x srcset attribute automatically. This automatic behavior will only be applied if the image asset exists on disk and this option is set to true.

Parameters:

  • value (Boolean)

    true or false to enable or disable this feature.

Returns:

  • (Boolean)

    Returns the current value of this option.