Friday, August 14, 2015

Scan an image from the (Linux) command line

(Trick source)

$ scanimage  --resolution 300  > scan.ppm 

Imagemagick can be used to convert the output to jpeg:

$ scanimage --resolution 90 | convert - -quality 80% image.jpg

See the scanimage manpage for more info.
Note: the --resolution option is not documented in the manpage!.

No comments: