dkitley1975 / lkm-creations

This is a e-commerce site created as the final project towards a Diploma in Software Development (E-commerce Applications)
https://lkm-creations.herokuapp.com/
1 stars 1 forks source link

Images not showing on older versions of Safari #55

Closed dkitley1975 closed 2 years ago

dkitley1975 commented 2 years ago

Images are not showing in older versions of safari,
All the images are in the format webp. Images show fine on a mac in chrome but not Safari(v13.1.2) webp is not supported on previous versions. supply a fallback image Safari: Screen Shot 2022-07-24 at 10 41 25 Chrome: Screen Shot 2022-07-24 at 10 42 44

dkitley1975 commented 2 years ago

completed, on each image upload two images are now created from the upload version, one webp and the other a jpeg or png. The picture tag is used for the images which calls on the webp first, if the browser doesn't recognise the tag such as older browsers, it falls back to the safe jpeg version. if this is missing it then calls on the default placeholder image. Tested on mac running Safari(v13.1.2)