enigmaticeasteregg
enigmaticeasteregg

Reputation: 23

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

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.

Upvotes: 1

Views: 4209

Answers (2)

Gene
Gene

Reputation: 46970

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.

Upvotes: 3

Benjamin Barenblat
Benjamin Barenblat

Reputation: 1311

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

scanimage | convert - output.jpg

Upvotes: 1

Related Questions