Skip to main content

Space-efficient patch-based image collection format

Project description

impak

Space-efficient patch-based image collection format.

This is the full function package for impak, providing encoding, decoding, and API/CLI usage. For a lightweight decoder-only Python package, see impak-decoder.

Example

See example.py for more example.

# A slightly slow, automatic method. The default method.
# Possibly produces a smallest impak file, but it really depends.
with impak.create("Ganyu X Slime_lto.impak",
                  mode="lto", codec="webp", quality=95
                  ) as pack:
    for path in tqdm(paths, desc="Encoding using impak"):
        pack.add(path, name=path.stem)

# A fast and straight forward, automatic method.
# Results in a slightly larger impak file.
with impak.create("Ganyu X Slime_prior.impak",
                  mode="vs_prior", codec="webp", quality=95
                  ) as pack:
    for path in tqdm(paths, desc="Encoding using impak"):
        pack.add(path, name=path.stem)

Usage

Package impak is available from pypi using pip.

Run impak --help, or check documentations in /docs folder.

Build

uv pip install build twine setuptools wheel
uv run --active python -m build
twine check dist/*
uv pip install dist/impak-xxxx.whl

License

impak is licensed under the GNU Affero General Public License v3.0.

See LICENSE for full text.

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

impak-0.1.2.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

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

impak-0.1.2-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

Details for the file impak-0.1.2.tar.gz.

File metadata

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

File hashes

Hashes for impak-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ab0606e17b2532fa1b1575641c1a50f5b39e1b1016589b95deba96ae5bc69a1b
MD5 aad661eae2dd62c8c5e262e0f7ae9ba0
BLAKE2b-256 6ee71cbc074e1e9dc71c5436e5bdd8311bb9819f1b7b49ef35816cd74a743ec4

See more details on using hashes here.

Provenance

The following attestation bundles were made for impak-0.1.2.tar.gz:

Publisher: python-publish.yml on puff-dayo/impak

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

File details

Details for the file impak-0.1.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for impak-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a43b5713f32de259266e0369930919962aebd133c557393e751228b373b9228
MD5 402d0b4ee0ecc1deeb66ba6ce6232184
BLAKE2b-256 a73f91edaef8782bee2ae1b7ce685fc193f9bd5bbe6881c9405c3c165560ad87

See more details on using hashes here.

Provenance

The following attestation bundles were made for impak-0.1.2-py3-none-any.whl:

Publisher: python-publish.yml on puff-dayo/impak

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