Skip to content

Instantly share code, notes, and snippets.

@guilleiguaran
Forked from krusynth/governmentify.sh
Created May 12, 2018 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guilleiguaran/513b32b5ef3661a92cc92c4c8b62e0b1 to your computer and use it in GitHub Desktop.
Save guilleiguaran/513b32b5ef3661a92cc92c4c8b62e0b1 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