An open API service indexing awesome lists of open source software.

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.

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
```