Stitch tiles into a single image
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images_in
images_out
.gitignore
LICENSE.md
README.md
package.json
tileGluer.js

README.md

TileGluer

Installation

Tested on Ubuntu 14.04.

Install latest node.js:

sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs
node -v
npm -v

Install GraphicsMagick

See http://www.graphicsmagick.org/README.html

Clone this repo:

sudo apt-get install git
git clone https://github.com/geostarters/tile-gluer.git

Install its dependencies with npm:

cd tile-gluer
npm install

For an usage message, run without parameters or with help:

node tileGluer
node tileGluer help

To generate the total mosaic, you must first generate the vertical strips (V) and then join these vertical strips (H).

Examples

node tileGluer V images_in/ images_out/ ppp_TN_x{x}y{y}.png output_{x}.png 3 9

node tileGluer V images_in/ images_out/ ppp_TN_x{x}y{y}.png output_{x}.png 3 25 6 16 0

node tileGluer H images_out/ images_out/ output_{x}.png output_final_{x}.png 3 6

node tileGluer H images_out/ images_out/ output_final_{x}.png output_total_{x}.png 2 2

Demo

Use demo images in folder images_in

node tileGluer V images_in/ images_out/ ppp_TN_x{x}y{y}.png output_{x}.png 3 95 26 87 16
node tileGluer H images_out/ images_out/ output_{x}.png output_final_{x}.png 4 26 26 16 16
node tileGluer H images_out/ images_out/ output_final_{x}.png output_total_{x}.png 3 19 19 16 16