简体   繁体   English

如何在javascript中将画布(png)保存为TIFF文件?

[英]How to save canvas(png) as TIFF file in javascript?

我想将生成的画布保存到tiff文件,然后我可以保存为例如name.tiff

You can do that with the following library: canvas-to-tiff .您可以使用以下库来做到这一点: canvas-to-tiff

The api is pretty straight forward, just bear in mind that the *.tiff file that is generated from the canvas is very large in size. api 非常简单,请记住,从画布生成的 *.tiff 文件非常大。

It's a 100 times (yes, one hundred) larger than an equivalent *.png file.它比等效的 *.png 文件大 100 倍(是的,一百倍)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM