# tibia-minimap-png

> A helper to generate PNGs that are compatible with Tibia 11’s minimap.

Latest version **2.1.1** (published 2026-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install tibia-minimap-png
pnpm add tibia-minimap-png
yarn add tibia-minimap-png
bun add tibia-minimap-png
```

## Health

**Score 50/100 (C)** — status: active.

Positive: no vulnerabilities; has provenance.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2026-07-03 |
| First published | 2017-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 6 |
| Author | Mathias Bynens |
| Maintainers | mathias |
| Keywords | mmorpg, tibia, tibia-maps |

## Links

- npm: https://www.npmjs.com/package/tibia-minimap-png
- Repository: https://github.com/tibiamaps/tibia-minimap-png
- Homepage: https://mths.be/tibiamaps
- Issues: https://github.com/tibiamaps/tibia-minimap-png/issues
- npm.io page: https://npm.io/package/tibia-minimap-png

## Dependencies (1)

- [crc](https://npm.io/package/crc.md) ^3.8.0

## Recent versions

- 2.1.1 (latest) — 2026-07-03
- 2.0.0 — 2020-10-31
- 1.1.0 — 2018-07-20
- 1.0.1 — 2017-05-10
- 1.0.0 — 2017-05-05

## README

# `tibia-minimap-png` [![tibia-minimap-png on npm](https://img.shields.io/npm/v/tibia-minimap-png)](https://www.npmjs.com/package/tibia-minimap-png)

Given a buffer with [visual map data](https://tibiamaps.io/guides/map-file-format#visual-map-data) or [pathfinding data](https://tibiamaps.io/guides/map-file-format#pathfinding-data) from a Tibia 10-compatible `*.map` file, `tibia-minimap-png` creates a PNG buffer that is compatible with [Tibia 11’s minimap](https://tibiamaps.io/guides/minimap-file-format).

## Installation

```sh
npm install --save tibia-minimap-png
```

## Usage

```js
const fs = require('fs');

const { wrapColorData, wrapWaypointData } = require('tibia-minimap-png');

const buffer = fs.readFileSync('12612507.map');
const colorData = buffer.slice(0, 0x10000);
const waypointData = buffer.slice(0x10000, 0x20000);

fs.writeFileSync('Minimap_Color_32256_32000_7.png', wrapColorData(colorData));
fs.writeFileSync(
	'Minimap_WaypointCost_32256_32000_7.png',
	wrapWaypointData(waypointData),
);
```

## Author

| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias 'Follow @mathias on Twitter') |
| ------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Mathias Bynens](https://mathiasbynens.be/)                                                                                                       |

---
_Source: https://npm.io/package/tibia-minimap-png · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
