Improve docco and output formatting

This commit is contained in:
Justin Hawkins 2019-06-20 21:59:21 +09:30
parent 76afabb1d8
commit 4cc498adab
2 changed files with 19 additions and 4 deletions

View File

@ -1,9 +1,24 @@
# slicerdicer
Slice and dice an image, turning it into many equal sized tiles.
Slice and dice an image, turning it into many equal sized tiles. Useful
for things like leaflet.js, with the Leaflet.Zoomify plugin.
The image is sliced up into equal sized tiles, based on the command line
option `--tile-size` (default 512 pixels).
Once the tiling is finished, the original is resized to half its current
dimensions (the orignal file on disk is not touched) and the process repeats.
Each halving is a new "zoom level".
Each file is named something like:
tile-z-x-y.png
Where 'z' is the zoom level, x and y are the coordinates, with 0,0 being
the top left tile.
## Usage
slicerdicer -help
slicerdicer --help
slicerdicer --filename foo.png --tile-size 256
slicerdicer --filename foo.png --tile-size 256

View File

@ -70,7 +70,7 @@ func main() {
}
}
fmt.Println()
fmt.Print("\r \r")
z++
}