Skip to content

Instantly share code, notes, and snippets.

@indy-singh
Forked from andyrbell/scanner.sh
Created August 4, 2020 23:21
Show Gist options
  • Save indy-singh/7c587720839a08360c061b789b10e355 to your computer and use it in GitHub Desktop.
Save indy-singh/7c587720839a08360c061b789b10e355 to your computer and use it in GitHub Desktop.
Make a pdf look scanned using ImageMagick
# use ImageMagick convert
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf
@indy-singh
Copy link
Author

indy-singh commented Aug 4, 2020

I used:-

convert -density 150 input.pdf -colorspace gray +noise Gaussian -rotate 0.5 -depth 2 output.pdf

Source: https://news.ycombinator.com/item?id=23161664

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment