Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.
/ img2epub.rb Public archive

create epub document from jpeg files.

License

Notifications You must be signed in to change notification settings

positrium/img2epub.rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img2epub.rb

create epub document from jpeg files.

how to use

YOUR_JPG_DIRECTORY_NAME/
├── 1.jpg
├── 2.jpg
├── 3.jpg
├── 4.jpg
└── cover.jpg

usage

$ bundle exec img2epub.rb YOUR_JPG_DIRECTORY_NAME

> document name:
    YOUR_JPG_DIRECTORY_NAME.epub

> document title:
    YOUR_JPG_DIRECTORY_NAME

> document direction:
    right to left

> document cover-image:
    1.jpg

> document content:
    2.xhtml(2.jpg)
    3.xhtml(3.jpg)
    4.xhtml(4.jpg)
    cover.xhtml(cover.jpg)

converted.

(TODO) editing YAML

document.yml

name: myEpub.epub
title: MY_EPUB
direction: ltr
cover-image: cover.jpg
  • name: epub file name.
  • title: view book title when open epub.
  • direction: page turning direction. [ltr|rtl]
  • cover-image: cover image on epub reader.
$ bundle exec img2epub.rb YOUR_JPG_DIRECTORY_NAME

> document name:
    myEpub.epub

> document title:
    MY_EPUB

> document direction:
    left to right

> document cover-image:
    cover.jpg

> document content:
    1.xhtml(1.jpg)
    2.xhtml(2.jpg)
    3.xhtml(3.jpg)
    4.xhtml(4.jpg)

converted.

About

create epub document from jpeg files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published