Simple script to convert Windows 1 and Windows 2 PAINT.EXE files to modern formats
Find a file
A.M. Rowsell 487f6ffb46
Wrapped entire code block in try to catch exceptions
Added a few different exceptions that are likely to happen
when trying to use this tool. It then offers useful feedback
and quits.
2021-03-30 08:25:07 -04:00
.gitignore Initial commit of first working version 2021-03-29 12:40:00 -04:00
LICENSE Initial commit of first working version 2021-03-29 12:40:00 -04:00
mspconvert.py Wrapped entire code block in try to catch exceptions 2021-03-30 08:25:07 -04:00
README.md Fixed line breaks in README.md 2021-03-29 16:44:15 +00:00

MSPConvert

What is MSPConvert?

MSPConvert is a really simple python script to convert old formats of Microsoft Paint to a format that GIMP can handle natively (XBM).
Because both version 1 and version 2 MSP files are black and white only, each pixel is represented directly by a bit. Converting version 1 is very simple: just copy the data over.
Version 2 implemented some simple run-length encoding, so a few extra steps are needed.

Usage

To convert a file called EXAMPLE.MSP to EXAMPLE_converted.xbm, just run:
./mspconvert.py EXAMPLE
It should detect the version automatically, and then write the output file.

Then fire up GIMP, open the xbm file, and you can then export it as any other modern format (PNG, JPG, BMP etc.)

License

The code is under Mozilla Public License v2. Feel free to modify and share as you wish -- just make sure your changes are released under the same license!