https://github.com/drewcassidy/pillow-mbm
Pillow plugin for KSP MBM texture files
https://github.com/drewcassidy/pillow-mbm
image-processing ksp pillow python
Last synced: 11 months ago
JSON representation
Pillow plugin for KSP MBM texture files
- Host: GitHub
- URL: https://github.com/drewcassidy/pillow-mbm
- Owner: drewcassidy
- License: agpl-3.0
- Created: 2021-04-12T00:18:47.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-13T08:58:26.000Z (about 5 years ago)
- Last Synced: 2025-02-17T17:42:10.264Z (over 1 year ago)
- Topics: image-processing, ksp, pillow, python
- Language: Python
- Homepage: https://forum.kerbalspaceprogram.com/index.php?/topic/201606-*
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Pillow-mbm
Pillow-mbm is a plugin for [pillow](https://pillow.readthedocs.io/en/stable/)
that adds support for KSP's proprietary MBM texture format.
## Installation
To install from Pypi, run:
```shell
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.
```