Skip to content

Instantly share code, notes, and snippets.

@krusynth
Created March 8, 2014 19:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save krusynth/9437567 to your computer and use it in GitHub Desktop.
Save krusynth/9437567 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