Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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 \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment