Skip to content

puff-dayo/impak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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.

About

Space-efficient patch-based image collection format.

Resources

License

Stars

Watchers

Forks

Contributors

Languages