Can't display converted .bmp file via html

C

ComeMon!

Hi,

I have downloaded one .bmp image from one web site. I choosed to save
this .bmp as .gif file by right click mouse key above the image then
choosing save this picture as menu option. Then I opened this ".gif"
file and windows explorer's image preview program can display it
without error.

Afterwards I created one simple html file with macromedia dreamweaver
MX 6.0. I inserted that image into html file via dreamweaver's editor
window. However, it just reserved a image holder for me. I tried open
the html file by double clicking the file. As expected, that inserted
..gif file couldn't be displayed by IE6.

At first I doubted may be there's something wrong with "img src="
tag's content so I inserted another .gif (not converted from .bmp
file) to this .html file. I found that this .gif file could be
displayed properly.

I would like to as if there is something wrong as I saved the .bmp
file from internet, why windows image preview program can display this
file properly while dreamweaver and windows IE couldn't ?

:{
 
D

Daniel Crichton

ComeMon! wrote on 18 Mar 2005 00:25:40 -0800:
Hi,

I have downloaded one .bmp image from one web site. I choosed to save
this .bmp as .gif file by right click mouse key above the image then
choosing save this picture as menu option. Then I opened this ".gif"
file and windows explorer's image preview program can display it
without error.

When you say you saved it as a GIF, do you mean you just typed .gif as the
extension? If so, all you did was save a BMP with a .gif extension - it's
not a GIF, IE will not convert it to one on the fly for you. You need to
open it in an image editor and save it as a GIF. The Image Preview program
might well be intelligent enough to look at the file header and ignore the
extension, loading it as a bitmap.
Afterwards I created one simple html file with macromedia dreamweaver
MX 6.0. I inserted that image into html file via dreamweaver's editor
window. However, it just reserved a image holder for me. I tried open
the html file by double clicking the file. As expected, that inserted
.gif file couldn't be displayed by IE6.

Certainly sounds like it's still a BMP file.
At first I doubted may be there's something wrong with "img src="
tag's content so I inserted another .gif (not converted from .bmp
file) to this .html file. I found that this .gif file could be
displayed properly.

I would like to as if there is something wrong as I saved the .bmp
file from internet, why windows image preview program can display this
file properly while dreamweaver and windows IE couldn't ?

As mentioned above, Image Preview loaded it as a BMP whereas MX and IE are
trying to read it as a GIF. Rename it back to .bmp, load into into an Image
Editor (even Windows Paint can handle this), and save it as a GIF.

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top