Skip to content

Instantly share code, notes, and snippets.

View peterzhu2118's full-sized avatar
🤷‍♂️
My code works, I have no idea why

Peter Zhu peterzhu2118

🤷‍♂️
My code works, I have no idea why
View GitHub Profile
@andyrbell
andyrbell / scanner.sh
Last active July 9, 2024 16:43
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