lib/carrierwave/cloudflare/action_view/responsive_images_helper.rb
def hidpi_image_srcset(url, dprs: nil, **options)
          return nil unless url.present?

          url = url.url if url.is_a?(CarrierWave::Uploader)

          (dprs || [1, 2]).map do |dpr|
            [cdn_transformed(url, dpr: dpr, **options), "#{dpr}x"].join(" ")
          end.join(", ")
        end
# Like #hidpi_image_tag, but returns an scrset attribute value.
Like #hidpi_image_tag, but returns an scrset attribute value.
Like #hidpi_image_tag but returns an scrset attribute value .
def hidpi_image_srcset(url, dprs: nil, **options)
          return nil unless url.present?
          url = url.url if url.is_a?(CarrierWave::Uploader)
          (dprs || [1, 2]).map do |dpr|
            [cdn_transformed(url, dpr: dpr, **options), "#{dpr}x"].join(" ")
          end.join(", ")
        end
def hidpi_image_srcset ( url , dprs : nil , ** options ) return nil unless url . present? url = url . url if url . is_a? ( CarrierWave :: Uploader ) ( dprs || [ 1 , 2 ] ) . map do | dpr | [ cdn_transformed ( url , dpr : dpr , ** options ) , "#{dpr}x" ] . join ( " " ) end . join ( ", " ) end
Like #hidpi_image_tag, but returns an scrset attribute value.
Like #hidpi_image_tag but returns an scrset attribute value .
url
dprs
options