GithubHelp home page GithubHelp logo

ospalh / djvubind Goto Github PK

View Code? Open in Web Editor NEW

This project forked from strider1551/djvubind

0.0 2.0 0.0 1.52 MB

Combine multiple image files into an optimally compressed djvu file.

Python 100.00%

djvubind's Introduction

djvubind

Dependencies

You could forgo having tesseract installed so long as you always use the --no-ocr option.

Recommendations

Minidjvu will get better compression on bitonal images than cjb2 (part of djvulibre) currently can. Some say that cuneiform is a better ocr engine, but in my experience it has issues with buffer overflows. I generally advise against using cuneiform, but if you do and it crashes, tesseract will take over for that image.

Installation

Installation should be as simple as ./setup.py install on Unix based systems. You can add --dry-run if you want to check what will happen before doing it, or just use --help for all the details on options. Those with debian based distros will probably be insterest in --install-layout=deb.

Installation is not necessary, since djvubind can run straight from the unpacked source. This is actually preferred in a Windows environment

N.b., at the moment most distributions are able to have python3 installed but do not use that version by default. If this is the case (and it probably is), explicitly call python3 when installing (e.g. python3 ./setup.py install)

Usage

Run djvubind in a directory that contains the files that should combined into the djvu file. Only files with .tif or .tiff extension will be included in the file. Additionally, by default "bookmarks" and "metadata" files will be inserted if they are present; they should be in the format used by djvused for print-outline and print-meta. A front or back cover image can also be provided in jpeg or tiff formats.

An example directory:

cover_front.jpg
cover_back.jpg
bookmarks
metadata
page_0001.tif
page_0002.tif
...
page_n.tif

An example bookmarks file:

(bookmarks
 ("Cover" "#1" )
 ("Contents" "#7" )
)

Note the # symbol before the page number, and don't forget that if you have a cover image, that will be page 1, not your first page of text.

An example metadata file:

author "John Smith"
title "Creating Quality Documents"

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.