Skip to content

thejoelpatrol/macpaint_file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A MacPaint file format translator. Convert MacPaint PNTG files to PNG, and vice-versa. Uses Atkinson dithering for color and grayscale input PNGs.

If you use this to rescue old MacPaint images, please submit them to www.macpaint.org!

Setup

Python 3.x is required.

pip install -r requirements.txt

Usage

./converter.py [-h] [--from-macpaint] [--to-macpaint] [--informat INFORMAT] infile outfil

Type codes

When converting --to-macpaint, the converter will attempt to set extended attributes on the output file: a type code of PNTG and creator code of MPNT. This metadata informs classic Mac OS what type of file it is (a PaiNTinG), and how to open it (MacPaiNT).

If the image is transferred to a classic Mac over file transport that does not preserve this metadata (e.g. FTP), the type and creator codes must be manually set on the classic Mac after transferring.

About

Convert MacPaint PNTG files to modern image formats and back

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages