Skip to content
Image mosaic library using imagemagick
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
imagemagick-promise.js
imagemosaick.js
package-lock.json
package.json
test.js

README.md

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
You can’t perform that action at this time.