在Javascript中查看多页TIFF [英] View a multipage TIFF in Javascript

查看:167
本文介绍了在Javascript中查看多页TIFF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有多页 TIFF 图片,我需要通过Javascript逐页浏览。

I currently have multi-paged TIFF images and I need to browse them page by page via Javascript.

我对此毫无头绪。你能帮助我吗?我发现了其他一些问题,但似乎没有任何问题与Javascript有关。

I have no clue about that. Can you help me? I found some other questions but none seems related to Javascript.

谢谢。

推荐答案

我非常怀疑JavaScript可以帮助你:大多数浏览器首先不能处理TIFF图像,更不用说多页面了。

I very much doubt JavaScript can help you here: Most browsers can't deal with TIFF images in the first place, let alone multi-page ones.

您将需要服务器端脚本的帮助 - 如PHP - 与 ImageMagick 等工具结合使用。

You will need the help of server-side scripting - like PHP - in combination with a tool like ImageMagick.

我自己从来没有试过这个,但是IM的多页语法看起来非常简单:

I've never tried this myself, but IM's multipage syntax seems to be pretty straightforward:

# extract page 15 from tiff file

convert 'image.tif[15]' image-15.jpg  

请注意,如果您的TIFF位于 CMYK 格式,您将需要执行额外的颜色空间转换为RGB - Internet Explorer无法处理任何格式的CMYK图像。

note that if your TIFF is in CMYK format, you will need to perform an additional colour space conversion to RGB - Internet Explorer can't deal with CMYK images in any format.

这篇关于在Javascript中查看多页TIFF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆