Kevin
Kevin

Reputation: 6833

Question about rendering .tiff image in HTML

In my html page, I created an tag to render some of my .tif format images.

Since .tif images can not be rendered directly in "src" attribute of the tag, so I created the following code to render it:

  <object width="200" height="200" type="image/tiff" data="Test.tif">
          <param name="src" value="Test.tif"/>
          <param name="negative" value="yes"/>
  </object>

Everything worked perfectly :) in both Chrome and Firefox, but the image is not rendering in IE. Wonder if any expert could offer some help?

Thanks a lot!

Upvotes: 2

Views: 4911

Answers (3)

CrazyJAT
CrazyJAT

Reputation: 11

You can also use PHP and ImageMagick to convert the tiff images to png or jpeg on the fly. That way they will render nicely and work in all browsers.

http://www.imagemagick.org/script/index.php

Upvotes: 1

user970133
user970133

Reputation:

You can convert it to a different file format, e.g. by screen capturing it using the PrtScrn button, then cropping it on Paint and saving it as a jpg/png/etc. file that every browser can display. If not, then somehow you will have to tell people to modify their registry because there is a registry that prevents .tif files by being rendered. Try looking at this:

http://www.pctools.com/guides/registry/detail/1182/

Upvotes: 1

alex
alex

Reputation: 490133

tif is not a standard format for the web (though the spec doesn't define a standard list) and it won't be displayed in all browsers.

It looks like it only has support for IE and Safari.

Browser Image Support

Upvotes: 4

Related Questions