I'm trying to use tif images in a website.
If I create a local page of html that uses img src= to display a tiff image, I get an empty image border with the alternate text in it. jpg's work ok, so I know the syntax is ok, - all I'm doing is changing the file name.
If instead I create a link to the tif image in the html file, Firefox has no problem rendering the file.
The same thing happens with Internet Explorer, so this is probably not a Firefox problem.
Is this some limitation of html in general? of img src = ? or something else?
Why doesn't img src = blah blah blah.tif display a tif image
- sv_ansa
- Posts: 7
- Joined: August 9th, 2007, 1:03 pm
Why doesn't img src = blah blah blah.tif display a tif image
Last edited by sv_ansa on August 20th, 2007, 1:16 pm, edited 1 time in total.
- the-edmeister
- Posts: 32249
- Joined: February 25th, 2003, 12:51 am
- Location: Chicago, IL, USA
- trolly
- Moderator
- Posts: 39851
- Joined: August 22nd, 2005, 7:25 am
One chance is that your server does not know which content-type to send for a tiff image.
Live link?
Live link?
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
-
- Guest
Browsers do not support tiff images without a plugin and you definitely cannot use the img element for tiffs. If you are seeing the tiff when loaded directly, that's because a plugin is being used. To embed a tiff in an html document, you have to use the embed or object element.
Try right-clicking on a tiff that is displayed directly. That should give you a clue as to what plugin is being used.
Try right-clicking on a tiff that is displayed directly. That should give you a clue as to what plugin is being used.
- sv_ansa
- Posts: 7
- Joined: August 9th, 2007, 1:03 pm
Right clicking on the tif image shows a link to the Alterna home page. But I already knew that.
I looked up <EMBED, and you are right: I think if I use this I can get the plug in to work within html.
So I guess the answer to my question is that <IMG only supports gif and jpg file formats - at least I haven't found anything that says different.
Maybe you're wondering why I care - I have tifs and jpgs of the same content, with equal quality of display, but the tifs are 5 times smaller.
Found a great place to look up stuff like this: http://www.w3schools.com/tags/tag_img.asp
Thanks for the suggestions.
I looked up <EMBED, and you are right: I think if I use this I can get the plug in to work within html.
So I guess the answer to my question is that <IMG only supports gif and jpg file formats - at least I haven't found anything that says different.
Maybe you're wondering why I care - I have tifs and jpgs of the same content, with equal quality of display, but the tifs are 5 times smaller.
Found a great place to look up stuff like this: http://www.w3schools.com/tags/tag_img.asp
Thanks for the suggestions.
- trolly
- Moderator
- Posts: 39851
- Joined: August 22nd, 2005, 7:25 am
Try PNG. Most browsers can render PNG images natively so you can use the img tag.
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
-
- Guest
why tif image doesn't get displayed in html?
ok we know that for displaying tif image we have to use plugin for that.
when png,jpg is working so why not tif?
when png,jpg is working so why not tif?