diff --git a/scanmultipage b/scanmultipage index bbe251d..b309567 100755 --- a/scanmultipage +++ b/scanmultipage @@ -103,7 +103,7 @@ done # concatenate scanned pages echo "Concatenating pages …" -convert "$_tmpdir/*.png" "${_file}" +magick "$_tmpdir/*.png" "${_file}" pushd $_tmpdir ps2pdf -dPDFSETTINGS=/ebook "${_file}" popd diff --git a/scanpage b/scanpage index 4f12bd1..2daacaf 100755 --- a/scanpage +++ b/scanpage @@ -3,7 +3,7 @@ ### : ' Scans a single page using sane’s `scanimage` and converts it to PDF using -ImageMagick’s `convert`. +ImageMagick. ' ### @@ -34,7 +34,7 @@ _silent=false _tmpdir="" usage () { - echo 'Scans a single page using sane’s `scanimage` and converts it to PDF using ImageMagick’s convert and opens it in Evince. + echo 'Scans a single page using sane’s `scanimage` and converts it to PDF using ImageMagick and opens it in Evince. options: -h, --help @@ -91,7 +91,7 @@ else _file="${_tmpdir}/$(date +%Y-%m-%d).pdf" fi -scanimage -d "$_device" -p --resolution 300 --mode Color -x 210 -y 297 --format=png | convert $( ( $_landscape ) && print "\-rotate \-90 ")- $_file && \ +scanimage -d "$_device" -p --resolution 300 --mode Color -x 210 -y 297 --format=png | magick $( ( $_landscape ) && print "\-rotate \-90 ")- $_file && \ ( $_silent ) || $_viewer $_file >/dev/null 2>/dev/null _cleanup