@zombrodo/tim-parser
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

TIM Parser

A parser for the PSX TIM image format,

It has currently been tested with 4-bit CLUT images, and 8-bit CLUT images, however not exhaustively. If, in the process of using this, you find a bug, please open an issue with a test image so that I can fix.

Does not support parsing TIM files with the Mixed pmode.

Install

yarn add @zombrodo/tim-parser

Usage

This library exposes one function, parse which takes in an ArrayBuffer and returns a TimImage object.

import { parse } from "tim-parser";

function parseFile(blob: Blob) {
  return parse(blob.arrayBuffer());
}

Readme

Keywords

none

Package Sidebar

Install

npm i @zombrodo/tim-parser

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

48.3 kB

Total Files

18

Last publish

Collaborators

  • zombrodo