lib/carrierwave/cloudflare/action_view/responsive_images_helper.rb
def hidpi_image_tag(url, dprs: nil, **options)
          url = url.url if url.is_a?(CarrierWave::Uploader)
          transform, rest = split_cdn_transform_options(options)

          image_tag(
            cdn_transformed(url, **transform),
            srcset: hidpi_image_srcset(url, dprs: dprs, **transform),
            **rest
          )
        end
# Returns an image tag with with scaled variations (via `srcset`)
# attribute for devices with different DPR values.
#
# The transformation of the original image should be specified via
# options.
#
# ==== Examples
#
#   hidpi_image_tag('/bird.jpg', width: 400, height: 100, alt: 'A bird')
#
#   hidpi_image_tag('/bird.jpg', width: 400, drps: [1, 2])
#
Returns an image tag with with scaled variations (via `srcset`)
attribute for devices with different DPR values.

The transformation of the original image should be specified via
options.

Examples




Returns an image tag with with scaled variations ( via ` srcset ` ) attribute for devices with different DPR values . The transformation of the original image should be specified via options . Examples
def hidpi_image_tag(url, dprs: nil, **options)
          url = url.url if url.is_a?(CarrierWave::Uploader)
          transform, rest = split_cdn_transform_options(options)
          image_tag(
            cdn_transformed(url, **transform),
            srcset: hidpi_image_srcset(url, dprs: dprs, **transform),
            **rest
          )
        end
def hidpi_image_tag ( url , dprs : nil , ** options ) url = url . url if url . is_a? ( CarrierWave :: Uploader ) transform , rest = split_cdn_transform_options ( options ) image_tag ( cdn_transformed ( url , ** transform ) , srcset : hidpi_image_srcset ( url , dprs : dprs , ** transform ) , ** rest ) end
Returns an image tag with with scaled variations (via `srcset`)
attribute for devices with different DPR values.
Returns an image tag with with scaled variations ( via ` srcset ` ) attribute for devices with different DPR values .
url
dprs
options