retile

2.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i retile

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

11 kB

Total Files

9

Last publish

Collaborators

  • sheerun