Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

mbround18/image-to-tile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Tiler

Install

npm i image-to-tile

Usage in Code

import imageToTile from 'image-to-tile';

function makeItHappen() {
  imageToTile('./input.png', './output-dir/');
}

This converts the input.png to a scaled pyramid of the image. The output dir would have the input files name plus _files under the output dir. The folder structure would then be:

./output-dir/input_files/{x}/{y}/{z}.png

Usage in Cli

image-to-tile slice ./input.png ./output-dir/

This converts the input.png to a scaled pyramid of the image. The output dir would have the input files name plus _files under the output dir. The folder structure would then be:

./output-dir/input_files/{x}/{y}/{z}.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published