CoverGenerator
CoverGenerator is a utility for generating simple book covers containing the book title nd author. The covers are generated using SVG and then rendered to an image file. This project is heavily inspired by racovimge and uses basically the same methods for creating covers, but this project has better multiline support and doesn't rely on any non-python applications for image exporting.
NOTE: Due to limitations with CairoSVG, CoverGenerator can't use embedded fonts and has to instead use system fonts. For proper word spacing and formatting, NotoSerif Bold & Bold Italic must be installed on your system. The program will still work without it, but you might have some odd word wrapping.
Installation
CoverGenerator can be downloaded from it's PyPI package using pip:
pip3 install CoverGenerator
If you are installing from source, the following python packages are required:
Command Line Script
You can generate a random cover with:
cover-generator -t "Title Text" -a "Author(s)"
You can specify the filename and image format with the --output tag, and set the width in pixels with the --width tag:
cover-generator -t "JPEG Cover" -a Writer -o coverimage.jpg -w 900
You can also specify a specific cover style and/or color palette using the --style and --palette tags:
cover-generator -t Title -a Author -s border -p ColorfulContrast
Available cover styles and color palettes are listed alongside options when using the --help command
Basic Python Usage
import cover_generator
# Create a random cover image
cover_generator.generate_cover(title="Title", author="author", path="/path/to/file.jpg")
# Create a random cover image with a specific cover style and color palette
cover_generator.generate_cover(title="Title", author="author", path="/path/to/file.jpg",
cover_style="cross" palette_category="ColorfulContrast")
Metadata
Release files for CoverGenerator 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| covergenerator-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for covergenerator-0.2.1-py3-none-any.whl |
Release files / covergenerator-0.2.1-py3-none-any.whl
| Download URL | covergenerator-0.2.1-py3-none-any.whl |
|---|---|
| Size | 41.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74b47ed39f8a617cd63ecf288db0dd260f6651ddf26e3178d8e9885c1c4e5ddf
|
|
BLAKE2b-256 checksum How to use checksums |
86d0759c97cff1e2dc04f1254b39486dfa7269763bcf381d36893386b58f2d4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for CoverGenerator 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.