Skip to main content

DjVu encoder with foreground/background separation (Python 3 fork)

Project description

Overview

didjvu uses the Gamera framework to separate foreground/background layers, which can be then encoded into a DjVu file.

Prerequisites

The following software is required:

Additionally, one of the following libraries is needed for the --xmp option:

  • GExiv2 (≥ 0.12.2) + PyGI or

  • python-xmp-toolkit or

    • Due to the repository being archived, this backend might lead to issues. Starting at Python 3.12, distutils is not available anymore, thus breaking the (default) installation.

  • py3exiv2

Installation

The easiest way to install didjvu is from PyPI:

pip install didjvu

Alternatively, you can use didjvu without installing it, straight out of an unpacked source tarball or a VCS checkout.

It’s also possible to install it from source for the current interpreter with:

pip install .

The man pages can be deployed using:

make install_manpage

By default, make install_manpage installs them to /usr/local/. You can specify a different installation prefix by setting the PREFIX variable, e.g.:

make install PREFIX="$HOME/.local"

About this fork

This repository is a port of the original repository to Python 3.

The process involved the 2to3 tool and manual fixes afterwards to get the existing tests to pass. Some of the error reports and fixes arising from the early porting process have been contributed by @rmast.

At the moment there are no plans to submit a pull request to the upstream repository, which would probably require some changes to my code as well. This is mostly due to the corresponding upstream issue being marked as wontfix: Issue #13.

I will try to keep this fork/port in sync with the upstream changes where necessary. Please note that I do not have any plans on implementing completely new features for now. Feature requests and bugs which can be reproduced in the original version as well should be reported at both places in the best case.

Differences from upstream

  • Package requires Python ≥ 3.6.

  • Drop old Gamera workarounds.

  • Migrate from nose to plain unittest stdlib module.

  • Conform to PEP8 coding style.

  • Use standardized setup.py-based installation.

  • Rename lib to didjvu and migrate didjvu binary to __main__.py and console script version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

didjvu-0.10.1.tar.gz (48.8 kB view details)

Uploaded Source

Built Distribution

didjvu-0.10.1-py3-none-any.whl (43.4 kB view details)

Uploaded Python 3

File details

Details for the file didjvu-0.10.1.tar.gz.

File metadata

  • Download URL: didjvu-0.10.1.tar.gz
  • Upload date:
  • Size: 48.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for didjvu-0.10.1.tar.gz
Algorithm Hash digest
SHA256 f6dccc74e210d636fb46868caf53ad30085640e9c99cf61bd29c9e5edda48abb
MD5 e8b6e45d902de98c82a729a103cf77ee
BLAKE2b-256 4f737ef4b9bae90cf119b7bf36f24923b9294c8c4ff7acd9be16eaeeca4262b7

See more details on using hashes here.

File details

Details for the file didjvu-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: didjvu-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 43.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for didjvu-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e5f01f88164e07dc796129d79fadb30762828e8d1e7ba887f0fbda35b6d75beb
MD5 9f5c9ae958b4ba925abbb4da4d88bb9b
BLAKE2b-256 5ebc227da54a40ccd1be140b11e5246b660d6eca0a2a65c960b0c87af58f694f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page