Giter Club home page Giter Club logo

khalo's Introduction

khalo

A selfhosted way to create images with quotations

Output example

Contents

  1. About
  2. License
  3. Prerequisites
  4. How to use
  5. TODO

1. About

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.

2. License

This project is licensed under the MIT license. For the full license, see LICENSE.

3. Prerequisites

These may already be installed on your system.

  • imagemagick command-line tool for manipulating images. imagemagick can be found on major Linux distributions.
  • wget command-line tool for downloading files. wget can be found on major Linux distributions.

Optional

  • fortune command-line tool for providing "fortunes". fortune can be found on major Linux distributions.
  • slugify if you wish to have filenames that mirror the text of the quotation. I used slugify-cli, which is a node.js program.

4. How to use

  • If you wish to use your fortune file and get one quotation a day, use fortune_image.sh. As configured now, it will output one image to your $HOME directory.

  • If you wish to specify which fortune file to use, edit Fortune=$(/usr/games/fortune) to read Fortune=$(/usr/games/fortune MyFortuneFile)

  • If you wish to use a plain text file and output all of the quotations at once to your home directory, use all_fortune_image.sh with the text file as the first argument.

  • Note that you will have to edit the sizes on lines 23 and 30 to get different output sizes.

5. Todo

  • TBH, I'm probably not going to clean this up a lot more; there are too many variables possible for me to account for all of them.

khalo's People

Contributors

uriel1998 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.