views:

1164

answers:

2

How to handle [TIFF][1] file in HTML pages?

I want to display a TIFF file in my HTML page.

I have tried using embedded tag, object id, img, etc. But I am unable to display the image (TIFF) in the HTML page.

I am not using Java, .NET or any other thing in my project. I am using HTML only.

#

Hi all,

To the above question, yesterday i got solution. i.e safari able to support TIFF image loading.

What should i do to load TIFF image in the remaining unsupported browser(IE, Mozilla, Firefox, etc)

i am unable to install third party installer or controller(like ActiveXController).

please give your valuable suggestion to this.

Thanks in Advance.

+4  A: 

This comes down to browser image support; it looks like the only mainstream browser that supports tiff is Safari:

http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support

Where are you getting the tiff images from? Is it possible for them to be generated in a different format?

If you have a static set of images then I'd recommend using something like PaintShop Pro to batch convert them, changing the format.

If this isn't an option then there might be some mileage in looking for a pre-written Java applet (or another browser plugin) that can display the images in the browser.

Richard Ev
+1 TIFF in browsers is an unsure thing - even more so with CMYK ones. I suggest conveting to JPG or PNG.
Pekka
I kept TIFF images in local system only. As per the specification, i should not convert into another format.
ASHOK
As per the Image format support in Browser, i can use safari to display the TIFF image. Is it right?
ASHOK
@ashok: The Wikipedia page claims that Safari can render TIFF images. I'd recommend downloading it (assuming you're using Windows) and trying it out.http://www.apple.com/safari/download/
Richard Ev
I would convert to PNG (that way you don't have to lose detail like in JPG... plus you are going to massively reduce the filesize you are serving up to the client. XnView provides awesome conversion utilities if you need a free app.
scunliffe
Thank you so much. Thanks to every one to support me.I could load TIFF image in safari browser
ASHOK
+4  A: 

I found this resource that details the various methods: How to embed TIFF files in HTML documents

As mentioned, it will very much depend on browser support for the format. Viewing that page in Chrome on Windows didn't display any of the images.

It would also be helpful if you posted the code you've tried already.

roryf
+1 Nice resource!
Pekka
Sorry it would be very large. So i am posting image loading part only1)<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="100%" HEIGHT="100%" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"> <PARAM name="SRC" VALUE="tiffdocument.tif"> <PARAM name="SCALE" VALUE="aspect"> </OBJECT> 2)<img width=200 height=200 src="tiffdocument.tif" alt="">like that
ASHOK
Thank you so much. safari browser support TIFF image.
ASHOK