From 1ef04c1947209a1c37fa47f5919475103bd59070 Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Thu, 21 Apr 2022 13:49:57 +0200 Subject: [PATCH] [module/scanner] Fix scan-a4 --- modules/scanner.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/scanner.nix b/modules/scanner.nix index d5a46cc..5e47514 100644 --- a/modules/scanner.nix +++ b/modules/scanner.nix @@ -14,11 +14,11 @@ exit 1 fi - scan --device-name ${device} \ - -x 210 \ - -y 297 \ - -o /tmp/last-scan.png \ - --resolution 150 || exit 2 + scanimage --device-name ${device} \ + -x 210 \ + -y 297 \ + -o /tmp/last-scan.png \ + --resolution 150 || exit 2 convert /tmp/last-scan.png "$1" || exit 3 ''; };