Go to file
drewcassidy 9745174a5a Release Version 0.1.3
### Changed

- Updated to support Click version 8
- Minor metadata changes
2021-05-13 01:57:18 -07:00
.github/workflows Update ci workflow 2021-05-13 01:45:07 -07:00
pillow_mbm use setuptools_scm for versioning 2021-05-13 01:55:22 -07:00
.gitignore Boilerplate 2021-04-11 17:54:04 -07:00
CHANGELOG.md Release Version 0.1.3 2021-05-13 01:57:18 -07:00
LICENSE.md markdown license file 2021-05-13 01:46:32 -07:00
pyproject.toml Update to support Click version 8 2021-05-13 01:37:44 -07:00
README.md Documentation and packaging changes 2021-04-11 21:28:08 -07:00
setup.cfg Update to support Click version 8 2021-05-13 01:37:44 -07:00

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.