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:

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. * Please note that Python 3.6 support has been dropped here in the meantime and the latest code might stop working on EOL Python versions.

  • 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.11.0.tar.gz (49.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

didjvu-0.11.0-py3-none-any.whl (44.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: didjvu-0.11.0.tar.gz
  • Upload date:
  • Size: 49.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for didjvu-0.11.0.tar.gz
Algorithm Hash digest
SHA256 b47899005749096fc1a301eaddecddafbb15b9d1b032743bf90ce702c2d55b17
MD5 ef67102ff4a5c5ec835cf5bd406ab73d
BLAKE2b-256 b6935da280e8853649a5cabf6512785fb96747c3e5461d25fdd37cf28460d192

See more details on using hashes here.

Provenance

The following attestation bundles were made for didjvu-0.11.0.tar.gz:

Publisher: release.yml on FriedrichFroebel/didjvu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: didjvu-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 44.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for didjvu-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73f5188cbb503c15585c349a1ad9b752d749cf4157000318d7067347069c5ea8
MD5 2bb518c7cefd818bac783968691b1914
BLAKE2b-256 1621af25c80dc37712633697b2b49df20fa92fb8086dfbba812798c796cde134

See more details on using hashes here.

Provenance

The following attestation bundles were made for didjvu-0.11.0-py3-none-any.whl:

Publisher: release.yml on FriedrichFroebel/didjvu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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