Skip to content
Generate a cover for the book
Branch: master
Clone or download
piranna Merge pull request #19 from Schoonology/background-color
Add background color support to default template.
Latest commit 44bd136 Aug 30, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts Add scripts/ Dec 8, 2014
test Restructure and add unit test for drawing Oct 14, 2015
.gitignore Add test.jpeg to .gitignore Jul 12, 2014
LICENSE Initial commit May 11, 2014 Added automatically by Gitbook no more Jun 10, 2016
package.json Bump version to 2.0.1 Jul 28, 2016

Cover Generation for GitBook

Generate a cover for the book.

How to use it:

To use this plugin in your book, add it to your book.json:

    "plugins": ["autocover"],
    "pluginsConfig": {
        "autocover": {
            // Configuration for autocover (see below)

And run gitbook install to fetch and prepare all plugins.

Installation of canvas

This module use node-canvas. You need to install some modules on your system before being able to use it: Wiki of node-canvas.


Here is default configuration of autocover, you can change it in your book.json:

    "title": "My Book",
    "author": "Author",
    "pluginsConfig": {
        "autocover": {
            "font": {
                "size": null,
                "family": "Impact",
                "color": "#FFF"
            "size": {
                "w": 1800,
                "h": 2360
            "background": {
                "color": "#09F"
You can’t perform that action at this time.