https://github.com/tabone/tileimg
Convert your image to map tiles.
https://github.com/tabone/tileimg
Last synced: 3 days ago
JSON representation
Convert your image to map tiles.
- Host: GitHub
- URL: https://github.com/tabone/tileimg
- Owner: tabone
- License: mit
- Created: 2015-09-08T11:04:37.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-14T15:31:20.000Z (almost 11 years ago)
- Last Synced: 2026-05-14T09:44:38.259Z (about 2 months ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tileimg
Converts your image to map tiles which can be viewed using libraries like [LeafletJS](http://leafletjs.com/) and [OpenLayers](http://openlayers.org/).
It's built upon ImageMagick:
On Ubuntu
```bash
$ apt-get install imagemagick
```
On Mac OS X
```bash
$ brew install imagemagick
```
On CentOS
```bash
$ yum install imagemagick
```
## Install
```bash
npm install -g tileimg
```
## Arguments
| Arguments | Type | Default | Description |
|-------------|--------|-----------|--------------|
| `minZoom` | Number | `0` | Minmum Zoom |
| `maxZoom` | Number | `0` | Maximum Zoom |
| `zoom` | Number | N/A | Use this argument to convert your image to one zoom level |
## Usage
```bash
$ tileimg image.png --minZoom 0 --maxZoom 5
```
```bash
$ tileimg image.png --zoom 2
```