imagemosaick
v1.0.3
Published
Mosaic image generation utility using ImageMagick
Downloads
9
Readme
imagemosaick
Image mosaic generation library using imagemagick
Installation
npm install imagemosaick
Usage
var mosaick = require('imagemosaick')
let tilesFolder = './tileset'
let tileSize = 16
var tileset = new mosaick.Tileset(
tilesFolder,
tileSize)
let input = 'inputFile.png'
let output = 'outputFile.png'
let options = { }
mosaick.generate(input, output, tileset, options)
.then(() => { console.log('Finished!') })
Options
Mosaic generation curently supports the following options:
| Option | Description | Default | | ------------- | ----------- | ------- | | verbose | Enable verbose stdout logging | false | | verboseEx | Enable extra verbose stdout logging (VERY verbose) | false | | maxMosaicSize | Maximum mosaic size in # of tiles (scale source image down to fit if necessary) | 200 | | threshold | Hue match threshold (0-320) - how far should the color match go? | 60 |