'Why the downloaded image shows that it appears that we don't support this file format

I'm hosted a static html file on netlify here is the url... https://laughing-lewin-eb42f8.netlify.app/

I'm successfully download the images when I trying to open it it show that it appears that we don't support this file format

I didn't understand why it's happening and can anyone tell me please how can I fix this issue.



Solution 1:[1]

Your image links are incorrectly defined in the script with a spurious https://cors-anywhere.herokuapp.com/ in front of them:-

 if (v == 1) {
                var url = 'https://cors-anywhere.herokuapp.com/https://c4.wallpaperflare.com/wallpaper/203/636/834/minimalism-landscape-digital-windows-11-hd-wallpaper-preview.jpg';
            } else if (v == 2) {
                var url = 'https://cors-anywhere.herokuapp.com/https://c4.wallpaperflare.com/wallpaper/694/526/541/digital-art-illustration-women-window-wallpaper-preview.jpg';
            } else if (v == 3) {
                var url = 'https://cors-anywhere.herokuapp.com/https://c4.wallpaperflare.com/wallpaper/230/886/355/the-lord-of-the-rings-the-hobbit-bag-end-the-shire-wallpaper-preview.jpg';
            } else {
                var url = 'https://cors-anywhere.herokuapp.com/https://c4.wallpaperflare.com/wallpaper/471/818/383/life-house-architecture-building-wallpaper-preview.jpg';

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 deep64blue