lib/carrierwave-picture/picture_helper.rb in carrierwave-picture-0.1.0 vs lib/carrierwave-picture/picture_helper.rb in carrierwave-picture-0.2.0

- old
+ new

@@ -7,12 +7,12 @@ srcset: "#{path}.webp", type: "image/webp", style: "height: inherit; width: inherit" if File.exist?(Rails.root.join("public/#{path}.webp")) concat content_tag :source, nil, - srcset: "#{path}.jpg", - type: "image/jpeg", - style: "height: inherit; width: inherit" if File.exist?(Rails.root.join("public/#{path}.jpg")) + srcset: "#{path}.jp2", + type: "image/jp2", + style: "height: inherit; width: inherit" if File.exist?(Rails.root.join("public/#{path}.jp2")) concat image_tag path, style: "height: inherit; width: inherit" end end end