简体   繁体   English

在Linux上,如何获取SANE的scanimage输出的TIFF并将其转换为带有管道字符的JPEG?

[英]On Linux, how do I take the TIFF that SANE's scanimage outputs and convert it to a JPEG with a pipe character?

我正在考虑使用Imagemagick的转换程序,因为我首选的程序nconvert不能在Raspberry pi的ARM CPU上运行。

Looking at the convert documentation , you can use a tiff:- to represent a tiff file on the standard input or output stream. 查看convert文档 ,您可以使用tiff:-表示标准输入或输出流上的tiff文件。 And scanimage docs say you need to give the format to get TIFF. scanimage文档说你需要提供格式来获取TIFF。 Putting this together, you'd have: 把它们放在一起,你会有:

scanimage --format=tiff | convert tiff:- scan.jpg 

I don't have access to a machine where I can test this. 我无法访问可以测试它的机器。

指定-作为要convert的输入文件 - 例如,

scanimage | convert - output.jpg

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

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