retile
v2.0.0
Published
Split image into overlaping tiles with similar dimensions
Downloads
5
Readme
retile
Split image into overlaping tiles with similar dimensions
Installation
npm install -g retile
CLI usage
Usage
$ retile <input> <output>
Options
--rows, -r Number of rows to divide image into (default: 3)
--columns, -c Number of columns to divide image into (default: 3)
--margin, -m Margin for each tile in pixels or percent (default: 25%)
Examples
$ retile input.png output/{row}_{column}.png
Programmatic usage
var convert = require('retile')
convert({
source: 'input.png',
target: 'output-{column}-{row}.png',
rows: 3,
columns: 3,
margin: '25%'
}).then(() => {
console.log('Tiled successfully!')
})
License
MIT