Update README
This commit is contained in:
parent
ff4ebaeb8b
commit
f740dc806b
10
README.md
10
README.md
@ -1,10 +1,10 @@
|
|||||||
# slicerdicer
|
# slicerdicer
|
||||||
|
|
||||||
Slice and dice an image, turning it into many equal sized tiles. Useful
|
Slice and dice an image, turning it into many equal sized tiles. Useful
|
||||||
for things like leaflet.js, with the Leaflet.Zoomify plugin.
|
for tools like leaflet.js, to create interactive "slippy" maps.
|
||||||
|
|
||||||
The image is sliced up into equal sized tiles, based on the command line
|
The image is sliced up into equal sized tiles, based on the command line
|
||||||
option `--tile-size` (default 512 pixels).
|
option `--tile-size` (default 256 pixels).
|
||||||
|
|
||||||
Once the tiling is finished, the original is resized to half its current
|
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.
|
dimensions (the orignal file on disk is not touched) and the process repeats.
|
||||||
@ -25,8 +25,12 @@ the top left tile.
|
|||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
It's going to eat some memory.
|
### Memory
|
||||||
|
|
||||||
In my tests on an 32641 x 16471, 8-bit/color RGB PNG, memory usage peaks at
|
In my tests on an 32641 x 16471, 8-bit/color RGB PNG, memory usage peaks at
|
||||||
around 2.7GB.
|
around 2.7GB.
|
||||||
|
|
||||||
|
### Speed
|
||||||
|
|
||||||
|
On that same test image, the run takes around 63 seconds to create the 11179
|
||||||
|
tiles, on my fairly underwhelming MacBookPro12,1 (dual core i5).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user