Skip to main content

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)

Table of built distributions (wheels) for CoverGenerator 0.2.1
File Interpreter ABI Platform
covergenerator-0.2.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page