2019-06-20 20:29:59 +09:30
|
|
|
# slicerdicer
|
2019-06-20 21:45:48 +09:30
|
|
|
|
2019-06-20 21:59:21 +09:30
|
|
|
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.
|
2019-06-20 21:45:48 +09:30
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2019-06-20 21:59:21 +09:30
|
|
|
slicerdicer --help
|
2019-06-20 21:45:48 +09:30
|
|
|
|
2019-06-20 21:59:21 +09:30
|
|
|
slicerdicer --filename foo.png --tile-size 256
|