Skip to main content
Home Forums 68kMLA Convert JPG or PNG to MacPaint — #5
Post #5 by Mike Richardson
Source Forum68kMLA
CategoryDevelopment
Post DateFri, 9 Oct 2009 - 08:24
Original URLhttps://68kmla.org/bb/threads/convert-jpg-or-png-to-macpaint.18745/
Post
How can you convert JPG or PNG to MacPaint files? GraphicConverter doesn't have MacPaint export as a option, though it says on the website that it will work.

GraphicConverter v5.9.5 has a MacPaint format choice for "Save As".

It looks like MacPaint format uses compression called "PackBits". The toolbox command was ported to Carbon so I assume it's still there all the way up to Snow Leopard, etc.

For some reason though the first 512 bytes of a MacPaint file are just zeros. Then the actual data starts which I assume is 1-bit per pixel information compressed with PackBits.

mp.ls