Skip to content

Instantly share code, notes, and snippets.

@julianpistorius
Forked from andyrbell/scanner.sh
Created September 8, 2025 18:04
Show Gist options
  • Save julianpistorius/d1cf41f46f74b8b932f9f6692029a9af to your computer and use it in GitHub Desktop.
Save julianpistorius/d1cf41f46f74b8b932f9f6692029a9af 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