Script/library to generate algoithmic book covers
Go to file
2023-05-20 15:42:39 -03:00
.github/workflows Create python-app.yml 2023-05-15 22:06:46 -03:00
tapita Minor refactor 2023-05-15 22:05:19 -03:00
.gitignore Gitignore 2023-05-20 15:42:39 -03:00 Licenses 2023-05-15 21:31:41 -03:00
poetry.lock Add lockfile 2023-05-16 10:51:31 -03:00
pyproject.toml Add package and metadata 2023-05-16 10:48:29 -03:00 Link to dicebear 2023-05-15 21:47:50 -03:00
requirements.txt Initial code 2023-05-15 20:45:48 -03:00

Tapita: a book cover generator

This is of very limited usefulness for the average person, but if you have ever needed to generate book covers for a few thousand files out of book metadata, then this may be for you!

The image it generates has some colorful "art" thanks to Dicebear which, again, will not change unless you change the title or subtitle of the book.

This is based off code from Tenprintcover although I don't think anything survives of the original code, which has been ported to Pillow and de-c64-fied.


$ python -m tapita --help
Usage: python -m tapita [OPTIONS]

  -t, --title <title>        Book title
  -s, --subtitle <subtitle>  Book subtitle
  -a, --author <author>      Book author
  -o, --output <filename>    Output file (- for stdout)
  --help                     Show this message and exit.

Example usage:

$ python -m tapita -t "Dunes" -s "Oh, worms!" -a "Frank Herbert (has no sons)" -o cover.jpg

Which produces this image:

A book cover

There are plentiful opportunities for customization, which I will probably not do anything about.

TODO: packaging and such.