Skip to content

Instantly share code, notes, and snippets.

Last active October 12, 2021 22:29
What would you like to do?
# Make a PDF look scanned.
# Extracted from and modified for smaller output files (compression lower density).
/usr/local/bin/convert -density '80' ${INPUT_FILE} -colorspace 'gray' -linear-stretch '3.5%x10%' \
-blur '0x0.5' -attenuate '0.25' +noise Gaussian -rotate 0.5 \
-compress lzw -quality 50 scanned_${INPUT_FILE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment