/Texi

Generate Images from Texts

Primary LanguageRuby

Texi

Installation Requirement

  • rmagick

For Ubuntu Users

$ apt-get install imagemagick libmagickwand-dev
$ gem install rmagick

Installation

$ make
$ make install

How to Use

Put whatever texts you want convert to images in data.json in following format

[
  {
    "text": "text...",
    "category": "category..."
  },
  {
    "text": "text...",
    "category": "category..."
  },
  {
    "text": "text...",
    "category": "category..."
  }
  
  ...
]

You need texi.config.json only if you want to use custom fonts.

{
  "font": "./fonts/BalooPaaji2-Bold.ttf"
}

Run Texi

$ texi

Will generate images and store them in images/<category>/<image-no>.jpg.