Skip to content

Instantly share code, notes, and snippets.

@coryodaniel
Forked from andyrbell/scanner.sh
Created March 10, 2020 03:32
Show Gist options
  • Select an option

  • Save coryodaniel/02482c0a7885590ba82b698627fd2c97 to your computer and use it in GitHub Desktop.

Select an option

Save coryodaniel/02482c0a7885590ba82b698627fd2c97 to your computer and use it in GitHub Desktop.

Revisions

  1. @andyrbell andyrbell revised this gist Sep 9, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion scanner.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    # use ImageMagick convert
    # the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf
    convert -density 288 input.pdf -resize 25% -rotate 0.5 output.pdf
    convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf
  2. @andyrbell andyrbell revised this gist Mar 25, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion scanner.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,3 @@
    # use ImageMagick convert
    convert input.pdf -rotate 0.5 output.pdf
    # the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf
    convert -density 288 input.pdf -resize 25% -rotate 0.5 output.pdf
  3. @andyrbell andyrbell created this gist Dec 11, 2017.
    2 changes: 2 additions & 0 deletions scanner.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # use ImageMagick convert
    convert input.pdf -rotate 0.5 output.pdf