by wan888888 · 5mo ago · 0 comments
magick -density 150 input.pdf \ -colorspace Gray \ -virtual-pixel White -background White \ -rotate 0.7 +repage \ -attenuate 0.45 +noise Gaussian \ -blur 0x0.4 \ -brightness-contrast -5x12 \ -compress jpeg -quality 78 scanned.pdf
The only tell tale sign is that the text still has this aliasing like texture that doesn’t happen in real scanned pages.
From my bookmarks (found on HN originally!)
https://gist.github.com/andyrbell/25c8632e15d17c83a54602f6ac...