MozillaZine

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

User Help for Mozilla Firefox
sv_ansa

User avatar
 
Posts: 7
Joined: August 9th, 2007, 1:03 pm

Post Posted August 19th, 2007, 9:37 pm

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.

the-edmeister

User avatar
 
Posts: 31161
Joined: February 25th, 2003, 12:51 am
Location: Chicago, IL, USA

Post Posted August 19th, 2007, 9:46 pm

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.

sv_ansa

User avatar
 
Posts: 7
Joined: August 9th, 2007, 1:03 pm

Post Posted August 20th, 2007, 1:14 pm

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.

trolly
Moderator

User avatar
 
Posts: 39242
Joined: August 22nd, 2005, 7:25 am

Post Posted August 20th, 2007, 1:19 pm

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 Posted August 20th, 2007, 3:46 pm

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.

sv_ansa

User avatar
 
Posts: 7
Joined: August 9th, 2007, 1:03 pm

Post Posted August 21st, 2007, 1:37 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.

trolly
Moderator

User avatar
 
Posts: 39242
Joined: August 22nd, 2005, 7:25 am

Post Posted August 21st, 2007, 1:40 pm

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
 

Post Posted October 3rd, 2012, 11:53 pm

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

Return to Firefox Support


Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot], katina128 and 16 guests