A selfhosted way to create images with quotations using BASH and imagemagick
A selfhosted way to create images with quotations
These programs creates an image with text upon it from either a
fortune file or a plain text file. You can read the blog post about it here.
This project is licensed under the MIT license. For the full license, see
imagemagickcommand-line tool for manipulating images.
imagemagickcan be found on major Linux distributions.
wgetcommand-line tool for downloading files.
wgetcan be found on major Linux distributions.
fortunecommand-line tool for providing “fortunes”.
fortunecan be found on major Linux distributions.
slugifyif you wish to have filenames that mirror the text of the quotation. I used slugify-cli, which is a node.js program.
fortune_image.sh. As configured now, it will output one image to your
If you wish to specify which fortune file to use, edit
Fortune=$(/usr/games/fortune) to read
all_fortune_image.shwith the text file as the first argument.
Steven Saus injects people with radioactivity for his day job, but only to serve the forces of good.