Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2009-08-14 12:11:57

bgiddins
Member
Registered: 2008-08-17
Posts: 54

BMP not displaying as image in img tags

Bit unusual - check out the following link:

where.bmp

On my 1.2.21 forum, it does not render the image - just the URL, even though it is correctly enclosed by img tags. Is this because it is a BMP file?

Browser is Firefox - it's not rendering here for me either.

Last edited by bgiddins (2009-08-14 12:12:25)

Offline

#2 2009-08-14 12:14:40

elbekko
Former Developer
From: Leuven, Belgium
Registered: 2008-04-30
Posts: 1,131
Website

Re: BMP not displaying as image in img tags

For one, the server is sending it as JPEG.

And why on earth would you use BMP?


Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks

Offline

#3 2009-08-14 14:24:58

bgiddins
Member
Registered: 2008-08-17
Posts: 54

Re: BMP not displaying as image in img tags

Not me - someone posted this link into my forum. Was curious as to why it wouldn't render.

Offline

#4 2009-08-14 16:59:56

Reines
Lead developer
From: Scotland
Registered: 2008-05-11
Posts: 3,165
Website

Re: BMP not displaying as image in img tags

The image is actually a jpeg not a bmp, if you download it and open with notepad you will notice it has a JFIF tag. I would imagine the reason it's not displaying within the image tag is something to do with it being corrupt.

Edit: Okay after testing a JPEG saved as BMP it worked fine so I guess it isn't that.

Edit 2: Download the file and uploaded it elsewhere and it's working even while saved as a bmp when it isn't:
76e94a51bd823da3253cedcb582b1151.bmp

My guess would be it's something to do with the setup of blogspot's servers.

Edit 3: When "right clicking -> save image" on Chrome it is downloading:

<html>
<head>
<title>where.bmp (image)</title>
<script type="text/javascript">
<!--
if (top.location != self.location) top.location = self.location;
// -->
</script>
</head>
<body bgcolor="#ffffff" text="#000000">
<img src="http://1.bp.blogspot.com/_IKYYcNXHAu4/SoU0ISa8qVI/AAAAAAAAAD0/Fqih8HJEoEs/s1600/where.bmp" alt="[where.bmp]" border=0>
</body>
</html>

So obviously blogspot is doing something rather weird.

Offline

#5 2009-08-14 21:23:14

Smartys
Former Developer
Registered: 2008-04-27
Posts: 3,135
Website

Re: BMP not displaying as image in img tags

Indeed: as Reines indicated, the correct URL is http://1.bp.blogspot.com/_IKYYcNXHAu4/S … /where.bmp

Offline

Board footer

Powered by FluxBB 1.5.0