Skip to content

Instantly share code, notes, and snippets.

View wagnerluis1982's full-sized avatar

Wagner Macedo wagnerluis1982

  • Brazil
  • 08:56 (UTC +02:00)
View GitHub Profile
@andyrbell
andyrbell / scanner.sh
Last active March 28, 2025 17:57
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