Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/posener/tiler
A Go port of https://github.com/nuno-faria/tiler.
https://github.com/posener/tiler
golang image-processing
Last synced: 20 days ago
JSON representation
A Go port of https://github.com/nuno-faria/tiler.
- Host: GitHub
- URL: https://github.com/posener/tiler
- Owner: posener
- Created: 2019-09-17T09:58:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-21T13:16:05.000Z (about 5 years ago)
- Last Synced: 2024-10-04T19:58:58.563Z (about 1 month ago)
- Topics: golang, image-processing
- Language: Go
- Homepage:
- Size: 841 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tiler
A Go port of https://github.com/nuno-faria/tiler.
## Examples
See the [gallery](./gallery)
Tiled version of the [cake image](https://www.flaticon.com/free-icon/cake_1102780)
by [pongsakornred](https://www.flaticon.com/authors/pongsakornred)
from [FLATICON](https://www.flaticon.com).![cake](gallery/cake.png)
## Usage
As a command line tool:
```bash
$ go install github.com/posener/tiler/cmd/tiler
$ tiler -h
Usage of tiler:
-colors string
Scale tiles colors.
Use a number 'n' to define number of scales of each color component.
Use comma separated numbers 'r,g,b' to have different number of scales to each color component.
-img string
Image to tile. Required.
-out string
Destination path.
-overlap
Can tiles overlap each other.
-rotate string
Rotate tiles. Comma separated list of rotations in range [0..1].
-scale string
Scale tiles. Comma separated list of scale factors.
-shift string
Grid shifts in the format: 'x,y'. If omitted, tile size will be used.
-tiles string
Path to tiles directory or a tile file. Required.
```Or as a library: [godoc](https://godoc.org/github.com/posener/tiler).