The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Image won't display with given name
Robolovsky
post 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...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Christian J
post Apr 19 2019, 05:10 PM
Post #2


.
********

Group: WDG Moderators
Posts: 8,216
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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 20 2019, 01:14 AM
Post #3


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,366
Joined: 9-August 06
Member No.: 6



QUOTE(Christian J @ Apr 20 2019, 12:10 AM) *

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. unsure.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Apr 20 2019, 03:24 AM
Post #4


.
********

Group: WDG Moderators
Posts: 8,216
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Apr 20 2019, 08:14 AM) *

Opens fine in IrfanView that tends to be picky.

That's what I used.

Now I tried again, this time it seems I got a proper 153KB image file. Maybe it's something intermittent?

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 20 2019, 05:44 AM
Post #5


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,366
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? ohmy.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
Robolovsky   Image won't display with given name   Apr 19 2019, 08:18 AM
Darin McGrew   They both display for me.   Apr 19 2019, 11:46 AM
CharlesEF   They both display for me too.   Apr 19 2019, 11:50 AM
pandy   For me three. Do you use any kind of content blo...   Apr 19 2019, 02:19 PM
Robolovsky   That is strange. I have an ad blocker in Chrome bu...   Apr 19 2019, 02:58 PM
pandy   That is strange. I have an ad blocker in Chrome b...   Apr 20 2019, 01:08 AM
Robolovsky   Just tried it with Kaspersky protection paused but...   Apr 19 2019, 03:15 PM
Robolovsky   Incidentally I have tried this on a local server a...   Apr 19 2019, 03:17 PM
CharlesEF   I tested using Firefox v66 and current versions of...   Apr 19 2019, 04:17 PM
Christian J   When I saved the file at http://www.snookerlegends...   Apr 19 2019, 05:10 PM
pandy   When I saved the file at http://www.snookerlegend...   Apr 20 2019, 01:14 AM
Christian J   Opens fine in IrfanView that tends to be picky. ...   Apr 20 2019, 03:24 AM
pandy   Oh, I didn't think about the file size you got...   Apr 20 2019, 05:44 AM
Christian J   So that file became broken in the download attemp...   Apr 20 2019, 08:55 AM
pandy   Nah...   Apr 21 2019, 05:34 PM
Christian J   Doesn't explain the OP's problem, though....   Apr 22 2019, 03:17 AM
pandy   Why would the 403 be sent in the first place?   Apr 22 2019, 05:55 PM
Christian J   Maybe something on the server is configured incorr...   Apr 23 2019, 03:59 AM
pandy   That targets the OP's browser? Sounds far-fetc...   Apr 23 2019, 05:41 AM
Christian J   Now I got a 403/Forbidden response even from the H...   Apr 23 2019, 06:47 AM
pandy   The rule, if there is one, must also target a cert...   Apr 24 2019, 05:48 AM
Christian J   Maybe the purpose is to prevent bots from download...   Apr 24 2019, 06:03 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 17th September 2019 - 09:17 AM