Javascript TIFF 图像转换
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17979696/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Javascript TIFF Image Conversion
提问by gblock
I am looking for a way to convert a Tiff image into a png so modern browsers can render it. I have looked at Tiffus, but that doesn't look like it is being developed anymore. I have also tried writing a conversion program in C# and sending through JSIL, but that didn't work either. I have also tried using Tiff-jsbut the sample project isn't working. Does anyone know how to do this? I know I can do it in C#/server-side but we want to try to do it client side.
我正在寻找一种将 Tiff 图像转换为 png 的方法,以便现代浏览器可以呈现它。我看过Tiffus,但看起来它不再被开发了。我也试过用 C# 编写一个转换程序并通过JSIL发送,但这也不起作用。我也尝试过使用Tiff-js,但示例项目不起作用。有谁知道如何做到这一点?我知道我可以在 C#/服务器端做到这一点,但我们想尝试在客户端做到这一点。
回答by seikichi
I ported LibTIFF to Javascript with Emscripten ( https://github.com/seikichi/tiff.js, demo: http://seikichi.github.io/tiff.js/basic.html)
我使用 Emscripten 将 LibTIFF 移植到 Javascript(https://github.com/seikichi/tiff.js,演示:http: //seikichi.github.io/tiff.js/basic.html )