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

4k views Asked by At

I was thinking of using Imagemagick's convert program, as my preferred program nconvert doesn't work on the ARM CPU of the Raspberry pi.

2

There are 2 answers

3
Gene On BEST ANSWER

Looking at the convert documentation , you can use a tiff:- to represent a tiff file on the standard input or output stream. And scanimage docs say you need to give the format to get 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.

0
Benjamin Barenblat On

Specify - as the input file to convert – e.g.,

scanimage | convert - output.jpg