retile

Split image into overlaping tiles with similar dimensions


License
MIT
Install
npm install retile@2.0.0

Documentation

retile Unix CI Modern Node

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