top / tiling


NAME

 tileImage - tile large images into small tile images


SYNOPSIS

 tileImage [options] [file ...]

Options:

    -help            brief help message
    -json            create json file in the each directories.
    -script          create javascript file for div block and an example code.
    -exif            create exif file of the original file.
    -quality         quility number for jpeg compressing. Default is 90.
    -h,-height       tile height. Default is 256.
    -w,-width        tile width Default is 256.
    -q,-quiet        quiet mode (no messages)


DESCRIPTION

    tileImage is a perl script to divide large files into tiles. This script is a
    part of TiledImage system. The input file shuld be in .png, .jpg and .p[bgpna]m
    types. This script creates a directory named as the same with the the original
    image without extensions and all the tiles are placed in the directory. The
    directory structure will be the following:
    +-+ original/
    | +-+ z0/
    | | +-- 0_0.jpg
    | | 
    | +-+ z1/
    | | +-- 0_0.jpg
    | | +-- 0_1.jpg
    | | +-- 1_0.jpg
    | | \-- 1_1.jpg
    | |
    | +-+ z2/
    | |
    | +-+ z3/
    | |
    | +-- (original.exif)
    | +-- (data.json)
    | \-- (inc.js)
    |
    \-- original.jpg
    zX/ directories are zoom directory. When increasing one zoom level means the
    zoom images twice larger. The maximum zoom level has the same resolution with
    the original. If you use jpeg file as a original file. The maximum zoom levels
    tile created by jpeg lossless transform.
    The z0 is the smallest zoom level and has only one tile.


OPTIONS

-help
    show this help.
-json
    JSON data for the original whole image. The file name is B<data.json>.
    The JSON format is the following:
    {
"name":
    string: name of the image.
"format":
    string: "z${z}/${x}_${y}.jpg",
"w":

    integer: original width of the image
"h":

    integer: original height of the image
"tw":

    integer: tile width
"th":

    integer: tile height
"mz":

    integer: the maximum zoom level
    }
-quality
    Quiality number of jpeg compressing. The range is 1-100. The default is 90.
-h,-height
    tile height in pixel. default is 256. If you specified non multiple of 8 and
    input file is JPEG, the lossless transform for maximum level tiles becomes
    lossy transform.
-w,-width
    tile width in pixel. default is 256. If you specified non multiple of 8 and
    input file is JPEG, the lossless transform for maximum level tiles becomes
    lossy transform.
-script
    create javascript for div block and code. The file name is B<inc.js>
-q,-quiet
    quiet mode.


SEE ALSO

    pamdice(1)

top / tiling