Skip to content

csongorb/SlicingTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

SlicingTool

Release: A stable release is available on GitHub Releases.

Overview

This is a very simple tool that converts SVG files into a leaflet PNG tile map. It takes one or more SVG images, slices them into tiles at various zoom levels and combines them into one leaflet usable structure. You can assign zoom ranges for each image to get the wanted transition between images.

Guide:

Input Images:

When prompted, enter the number of SVG images you wish to process. Then provide the file paths to your SVG images (path and “path” are both valid)

Output Settings:

Specify the output directory where the tiles will be saved.

Set output iamge pixel size:

Choose to use the default tile dimension (512 pixels) or enter a custom output file size.

Set Zoom Levels:

For each image, input the minimum and maximum zoom level. They are not allowed to overlap since all of them will be saved to the same output folder. Both can be inputted at the same time by writing min-max (e.g. 1-4)

Image Compression:

The tool supports automatic image optimization for the generated PNG tiles to greatly reduce file size. This feature relies on oxipng, an external PNG optimizer. For it to work, ensure that the oxipng.exe executable is placed in the same directory as the tool's executable (or accessible via your system's PATH environment variable).

License:

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages