Giter Club home page Giter Club logo

comicepub's Introduction

comicepub

digital comic epub3 generator

Install

pip3 install comicepub

Usage

comicepub --help
usage: comicepub [-h] -t TITLE --author AUTHOR [--publisher PUBLISHER] [--language LANGUAGE] -i INPUT -o OUTPUT
                 [--cover COVER] [--version]

optional arguments:
  -h, --help            show this help message and exit
  -t TITLE, --title TITLE
                        Book title
  --author AUTHOR       Book author
  --publisher PUBLISHER
                        Book publisher
  --language LANGUAGE   Book language
  -i INPUT, --input INPUT
                        Source images directory of comic book
  -o OUTPUT, --output OUTPUT
                        Output filename of comic book
  --cover COVER         cover image file of comic book
  --version             show program's version number and exit
comicepub \
  -i /path/to/your/comicdir \
  -o /path/to/save/output.epub \
  --title "Comicbook" \
  --author "comicepub" \
  --language "zh"
from comicepub import ComicEpub

comicepub = ComicEpub("path/to/output.epub")

comicepub.title = ("Title", "Title")
comicepub.authors = [("Author 1", "Author 1")]
comicepub.publisher = ('Comicbook', 'Comicbook')
comicepub.language = "ja"

comicepub.add_comic_page(cover_data, cover_ext, cover=True)
for image_data, image_ext in images:
	comicepub.add_comic_page(image_data, image_ext, cover=False)

comicepub.save()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.