You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andrew Cassidy 8c6b3353d2 fix version number 4 weeks ago
.github/workflows Add --verbose option 4 weeks ago
pillow_mbm fix version number 4 weeks ago
.gitignore Boilerplate 4 weeks ago
CHANGELOG.md fix version number 4 weeks ago
LICENSE Initial commit 4 weeks ago
README.md Documentation and packaging changes 4 weeks ago
setup.py Add --verbose option 4 weeks ago

README.md

Pillow-mbm

Pillow-mbm is a plugin for pillow that adds support for KSP's proprietary MBM texture format.

Installation

To install from Pypi, run:

python -m pip install pillow-mbm

Usage

To decode MBM files, use the convert-mbm command, along with a glob or a list of files to decode. By default, it will convert to png in place.

Usage: convert-mbm [OPTIONS] [FILENAMES]...

  Decode Kerbal Space Program MBM files

Options:
  -f, --flip / -F, --no-flip  Vertically flip image after converting.
  -r, --remove                Remove input images after converting.
  -s, --suffix TEXT           Suffix to append to output file(s). Ignored if
                              output is a single file.

  -x, --extension TEXT        Extension to use for output. Ignored if output
                              is a single file. Output filetype is deduced
                              from this  [default: .png]

  -o, --output PATH           Output file or directory. If outputting to a
                              file, input filenames must be only a single
                              item. By default, files are decoded in place.

  --version                   Show the version and exit.
  --help                      Show this message and exit.