Why doesn't img src = blah blah blah.tif display a tif image

User Help for Mozilla Firefox
Locked
User avatar
sv_ansa
Posts: 7
Joined: August 9th, 2007, 1:03 pm

Why doesn't img src = blah blah blah.tif display a tif image

Post by sv_ansa »

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?
Last edited by sv_ansa on August 20th, 2007, 1:16 pm, edited 1 time in total.
User avatar
the-edmeister
Posts: 32249
Joined: February 25th, 2003, 12:51 am
Location: Chicago, IL, USA

Post by the-edmeister »

You need a plugin to view a Tiff file.
http://en.wikipedia.org/wiki/Tagged_Image_File_Format

.
A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.
User avatar
sv_ansa
Posts: 7
Joined: August 9th, 2007, 1:03 pm

Post by sv_ansa »

Don't think this is the problem.
I have the alterna plug in, and as I say, the tifs are rendered fine by Firefox or IE directly, it's only when I try to display one within an html page that the problem arises.
User avatar
trolly
Moderator
Posts: 39851
Joined: August 22nd, 2005, 7:25 am

Post by trolly »

One chance is that your server does not know which content-type to send for a tiff image.

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.
Guest
Guest

Post by 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.
User avatar
sv_ansa
Posts: 7
Joined: August 9th, 2007, 1:03 pm

Post by sv_ansa »

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.
User avatar
trolly
Moderator
Posts: 39851
Joined: August 22nd, 2005, 7:25 am

Post by trolly »

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.
kavita menghani
Guest

why tif image doesn't get displayed in html?

Post by kavita menghani »

ok we know that for displaying tif image we have to use plugin for that.
when png,jpg is working so why not tif?
Locked