Image won't display with given name |
Image won't display with given name |
Robolovsky |
Apr 19 2019, 08:18 AM
Post
#1
|
Group: Members Posts: 4 Joined: 19-April 19 Member No.: 26,880 |
I have been coding in HTML for many years and do not understand what is happening.
Please take a look at the following test web page: http://www.snookerlegends.co.uk/imgtest2.html The page contains two identical images (with slightly different names), each inside a table border. The top one does not display while the lower one does. The top image is called FP_ad1.jpg and the lower one is called FPad1.jpg (no underscore) If you check the page source and click the link to FP_ad1.jpg you will see that it does exist on the server so why does it not appear in the page? The Doc type is HTML 5 but I have tried it with many different Doc types and always the same result. Even stranger is that if I add any other character after the 1 the picture then does display so FP_ad10.jpg will display However if I remove the FP and underscore completely leaving ad1.jpg that does not display while ad10.jpg does. I am completely baffled by this behaviour, I have tried it in different browsers always with the same result. What am I missing? ...Please note the image is an ad for a snooker book. It is not my book nor am I trying to promote it in any way. It just happens to be the image that this behaviour first occurred with... |
Christian J |
Apr 19 2019, 05:10 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
When I saved the file at http://www.snookerlegends.co.uk/images/book18/FP_ad1.jpg its size was just 93 bytes. It couldn't be opened by my image editor, but when tried a text editor the following content was shown:
CODE <html><body><h1>403 Forbidden</h1> Request forbidden by administrative rules. </body></html> Considering the above, it's strange that the image can be viewed in a browser at all. |
pandy |
Apr 20 2019, 01:14 AM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
When I saved the file at http://www.snookerlegends.co.uk/images/book18/FP_ad1.jpg its size was just 93 bytes. It couldn't be opened by my image editor, but when tried a text editor the following content was shown: CODE <html><body><h1>403 Forbidden</h1> Request forbidden by administrative rules. </body></html> Considering the above, it's strange that the image can be viewed in a browser at all. Opens fine in IrfanView that tends to be picky. Neither do I see any legible characters when I open the image in a text editor. |
Christian J |
Apr 20 2019, 03:24 AM
Post
#4
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
|
pandy |
Apr 20 2019, 05:44 AM
Post
#5
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Oh, I didn't think about the file size you got the first time. So that file became broken in the download attempt and an error message, HTML and all, was somehow injected to it. How on earth can that happen?
|
Lo-Fi Version | Time is now: 26th April 2024 - 01:25 AM |