scottjehl / picturefill

A responsive image polyfill for <picture>, srcset, sizes, and more
http://scottjehl.github.com/picturefill/
MIT License
9.88k stars 1.07k forks source link

Broken Images(jp2) with chrome emulated mobile devices #699

Closed sampathkolanu closed 2 years ago

sampathkolanu commented 6 years ago

Images in chrome are not loading ONLY when I emulate a mobile device(all devices). Images seems to load fine when i resize the browser and visit the site from real mobile devices.

Noticed this issue only happening in chrome. Seems to work fine with emulated devices in both firefox and IE edge

This is caused because of the images are downloaded as .jp2 extension even when the image from the server is sending as .jpg. Out of all 12 images on my site only 2 images load with .jpg and rest with .jp2

here is the code: `

`

What is causing the images to load with .jp2? and how do i fix this issue?

Thanks