imagemosaick

1.0.3 • Public • Published

imagemosaick

Image mosaic generation library using imagemagick

Build Status JavaScript Style Guide

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

/imagemosaick/

    Package Sidebar

    Install

    npm i imagemosaick

    Weekly Downloads

    2

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • brianholley