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.
Tiff images can be displayed directly onto IE and safari only.. no support of tiff images on chrome and firefox. you can encode the image and then display it on browser by decoding the encoded image to some other format. Hope this works for you
发布评论
评论(4)
您可以尝试将图像从 tiff 转换为 PNG,具体操作方法如下:
You can try converting your image from tiff to PNG, here is how to do it:
这取决于浏览器图像支持;看起来唯一支持 tiff 的主流浏览器是 Safari:
http://en.wikipedia.org/ wiki/Comparison_of_web_browsers#Image_format_support
您从哪里获取 tiff 图像?它们是否可以以不同的格式生成?
如果您有一组静态图像,那么我建议使用类似 PaintShop 的东西Pro可以批量转换它们,改变格式。
如果这不是一个选项,那么寻找可以在浏览器中显示图像的预先编写的 Java 小程序(或其他浏览器插件)可能会花费一些时间。
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.
我发现这个资源详细介绍了各种方法:如何在 HTML 文档中嵌入 TIFF 文件
如前所述,这在很大程度上取决于浏览器对该格式的支持。在 Windows 上的 Chrome 中查看该页面没有显示任何图像。
如果您发布已经尝试过的代码也会很有帮助。
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.
Tiff 图像只能直接显示在 IE 和 safari 上。chrome 和 firefox 不支持 tiff 图像。您可以对图像进行编码,然后通过将编码图像解码为其他格式来将其显示在浏览器上。
希望这对你有用
Tiff images can be displayed directly onto IE and safari only.. no support of tiff images on chrome and firefox. you can encode the image and then display it on browser by decoding the encoded image to some other format.
Hope this works for you