Kerbal Space Program MBM file conversion plugin
Project description
Pillow-mbm
Pillow-mbm is a plugin for pillow that adds support for KSP's proprietary MBM texture format.
test/swis_mesh.mbm from Coatl redistributed under CC-BY-NC-SA 4.0
Installation
Install and update with pip:
$ pip install -U pillow-mbm
Or with uv:
$ uv tool 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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pillow_mbm-0.2.0.tar.gz.
File metadata
- Download URL: pillow_mbm-0.2.0.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
264ec2797f8b0847e95ce242bc79091f7ae05a3968bb39fa3ca7f35982af8c6b
|
|
| MD5 |
6ac823103d77a7abb1f6ebc7b228bb74
|
|
| BLAKE2b-256 |
1a01873815004363ab23f945ff52776554494c8ada91148b4224d818bfacdc5f
|
File details
Details for the file pillow_mbm-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pillow_mbm-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e1277371952777fc8b896346974f3bbb7e768674e6dea662da767e4a5b9b1ef
|
|
| MD5 |
8fdaecaa9c33d46a1d13839b30d98429
|
|
| BLAKE2b-256 |
cbf6c9cf77ae7a69041c78da513c6e4359fa309a6b98944ab8b871089460a7a1
|