pc98img
v1.0.0
Published
Legacy Japanese image decoders for MAG, MAKI, PI, PIC, and PCD
Downloads
103
Maintainers
Readme
pc98img
Decoders for legacy Japanese image formats including MAG, MAKI, PI, PIC, and PCD.
Install
npm install pc98imgAPI
const {
decodeMAG,
decodeMAKI,
decodePI,
decodePIC,
decodePCD,
} = require("pc98img");All decoders return an object with at least:
widthheightbpppixelsheader
Indexed images also return palette.
Direct-color images return pixelFormat: "rgb" and pixels as packed RGB bytes.
CLI
Convert a supported file to PNG:
legacy2png input.mag
legacy2png input.mki
legacy2png input.pi output.png
legacy2png input.pic
legacy2png input.pcdFor PIC, output the original unadjusted size:
legacy2png --original input.pic out.pngNote
PCD is not fully verified yet.
