Skip to content

Instantly share code, notes, and snippets.

@pierow2k
Forked from krusynth/governmentify.sh
Created August 20, 2017 04:23
Show Gist options
  • Save pierow2k/878e4ecd73287d07211f3ce52da19597 to your computer and use it in GitHub Desktop.
Save pierow2k/878e4ecd73287d07211f3ce52da19597 to your computer and use it in GitHub Desktop.
Uses ImageMagick to read in a text file, transform it into an image, rotate it, add noise, and output as a pdf.
cat ./1-219.1.txt | convert \
-font Courier \
text:- \
-rotate `convert null: -format '%[fx:rand()*15-7]' info:` \
-attenuate 0.1247 +noise Gaussian \
-colorspace Gray \
1-219.1.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment