All Projects → VoidVolker → MagickSlicer

VoidVolker / MagickSlicer

Licence: MIT license
Map tiles generator

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to MagickSlicer

Lsix
Like "ls", but for images. Shows thumbnails in terminal using sixel graphics.
Stars: ✭ 2,635 (+3509.59%)
Mutual labels:  imagemagick
pdf-thumbnail
npm package to create the preview of a pdf file
Stars: ✭ 23 (-68.49%)
Mutual labels:  imagemagick
FotoKilof
GUI for ImageMagick
Stars: ✭ 114 (+56.16%)
Mutual labels:  imagemagick
maptiles
Map tile generator. Converts an image into map tiles using ImageMagick. Map tiles can be used in Google Maps, Leaflet and other map rendering software.
Stars: ✭ 52 (-28.77%)
Mutual labels:  imagemagick
annotorious-openseadragon
An OpenSeadragon plugin for annotating high-res zoomable images
Stars: ✭ 93 (+27.4%)
Mutual labels:  openseadragon
Imgbot
An Azure Function solution to crawl through all of your image files in GitHub and losslessly compress them. This will make the file size go down, but leave the dimensions and quality untouched. Once it's done, ImgBot will open a pull request for you to review and merge. [email protected]
Stars: ✭ 1,017 (+1293.15%)
Mutual labels:  imagemagick
Googliser
a fast BASH multiple-image downloader
Stars: ✭ 202 (+176.71%)
Mutual labels:  imagemagick
blurlock-neofetch
A standard i3lock blur screen, but now with neofetch stats overlayed
Stars: ✭ 17 (-76.71%)
Mutual labels:  imagemagick
TGImage
一款以最新潮的方式来使用UIImage的swift插件
Stars: ✭ 18 (-75.34%)
Mutual labels:  imagemagick
Perspec
Scriptable desktop app to correct the perspective of images
Stars: ✭ 523 (+616.44%)
Mutual labels:  imagemagick
crymagick
A crystal wrapper for ImageMagick command line.
Stars: ✭ 37 (-49.32%)
Mutual labels:  imagemagick
magick-wasm
The WASM library for ImageMagick
Stars: ✭ 259 (+254.79%)
Mutual labels:  imagemagick
EasyAlbum
📷 A lightweight, pure-Swift library for pick up photo from your album.
Stars: ✭ 31 (-57.53%)
Mutual labels:  imagemagick
Node S3 Uploader
Flexible and efficient resize, rename, and upload images to Amazon S3 disk storage. Uses the official AWS Node SDK for transfer, and ImageMagick for image processing. Support for multiple image versions targets.
Stars: ✭ 237 (+224.66%)
Mutual labels:  imagemagick
RobotEyes
Image comparison for Robot Framework
Stars: ✭ 62 (-15.07%)
Mutual labels:  imagemagick
Grim
Tool for extracting pages from pdf as images and text as strings.
Stars: ✭ 208 (+184.93%)
Mutual labels:  imagemagick
mogrify
Image processing in Elixir (ImageMagick command line wrapper)
Stars: ✭ 525 (+619.18%)
Mutual labels:  imagemagick
cyan
Cyan Color Converter
Stars: ✭ 68 (-6.85%)
Mutual labels:  imagemagick
slitcamera
Bash script to turn video file into slit photo
Stars: ✭ 41 (-43.84%)
Mutual labels:  imagemagick
resizer
Quick image resizer app for elementary OS
Stars: ✭ 15 (-79.45%)
Mutual labels:  imagemagick

MagickSlicer

Join the chat at https://gitter.im/VoidVolker/MagickSlicer

DZI and custom map tiles generator.

Dependencies

OS support

  • Linux
  • OSX

Viewers support

Usage

magick-slicer.sh [options] [-i] /source/image [[-o] result/dir]
magick-slicer.sh /source/image [options] [result/dir]
magick-slicer.sh /source/image [result/dir] [options]

Use quotes for path or options with spaces. First unknown string interpreting as source image, if it not defined. Second unknown string is interpreting as result path, if it not defined. Also, for source and result you can use options -i and -o. As result you will get sliced image in default format (basic DZI).

Example:

./magick-slicer.sh foo.jpg

Result:

[file]  foo.dzi
[dir]   foo_files
[dir]       0
[file]          0_0.jpg (1x1px)
            1
                0_0.jpg (1x1)
            2
                0_0.jpg (2x2)
            3
                0_0.jpg (4x4)
            ...

            8
                0_0.jpg (WxH)      W<=256, H<=256
            9
                0_0.jpg (256x256)
                x_y.jpg (WxH)      W<=256, H<=256
            10
                0_0.jpg
                0_1.jpg
                1_0.jpg
                1_1.jpg
                ...
                x_y.jpg
            ...
            N (max zoom level)
                0_0.jpg
                ...
                x_y.jpg

Example OSD render:

<!DOCTYPE html><html><head>
    <meta charset="UTF-8">
    <script type="text/javascript" src="openseadragon.min.js"></script>
    <style>
        BODY {
            padding: 0;
            margin: 0;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            overflow: hidden;
            position: absolute;
        }
        #map {
            width: 100%;
            height: 100%;
            background-color: #434343;
        }
    </style>
</head>
<body>
    <div id="map"></div>
    <script type="text/javascript">
        OpenSeadragon({
            id: 'map'
            , prefixUrl: 'images/'
            , tileSources: 'foo.dzi'
        });
    </script>
</body>
</html>

Help options

-?, --help [option]

Show basic help or show help for selected option.

Type: str

-m, --man

Show full help for all options.


Options list

[ -v, --verbose <level> ]

User-selected verbosity levels:

  • 0 = none
  • 1 = warnings
  • 2 = warnings + info
  • 3 = warnings + info + debug

[ -v0, -v1, -v2, -v3 ]

Short commands for each verbosity level.

Default: 0

Type: int

[ -i, --in <file_path> ]

Input file to slice.

Type: str

[ -o, --out <directory_path> ]

Output directory for result.

Default: same as source

Type: str

[ -e, --extension <file_extesion> ]

Set result files extension.

Default: same as source

Type: str

[ -w, --width <tile_width> ]

Set tile width.

Default: 256 pixels or same as height, if height is present.

Type: int

[ -h, --height <tile_height> ]

Set tile height

Default: 256 pixels or same as width, if width is present.

Type: int

[ -s, --step <zoom_step_value> ]

Zoom step value. Formula:

image_size[i+1] = image_size[i] * 100 / step (1)

200 -> 200% or 2x    -> 100% * 100 / 200 = 50%
175 -> 175% or 1.75x -> 100% * 100 / 175 = 57.(142857)%
120 -> 120% or 1.2x  -> 100% * 100 / 120 = 83.(3)%
300 -> 300% or 3x    -> 100% * 100 / 300 = 33.(3)%
100 -> 100% or 1x (no resize) -> infinity loop. Don't use it.

Default: 200

Type: int

[ -p, --options 'imagemagick options string' ]

Specifies additional imagemagick options for convert.

Type: str

[ -g, --gravity <type> ]

Types: NorthWest North NorthEast West Center East SouthWest South SouthEast

The direction you choose specifies where to position image, when it will be sliced. Use -list gravity to get a complete list of -gravity settings available in your ImageMagick installation. http://www.imagemagick.org/script/command-line-options.php#gravity

Default: NorthWest

Type: str

[ -x, --extent ]

Specifies the edge tiles size: cropped or extent them to full size and fill transparent color.

Default: false

Type: logic switch

[ -d, --dzi ]

Specifies output format.

Default: true

Type: logic switch

[ -a, --slicea ]

Type of slicing - slice A. Image scale starts from image size to down. Inverts option --sliceb.

Default: true

Type: logic switch

[ -b, --sliceb ]

Type of slicing - slice B. Image scale starts from tile size and grow up. Inverts option --slicea.

Default: false

Type: logic switch

[ -c, --scaleover ]

Create upscaled image for maximum zoom (last zoom be equal or grater, then image).

zoom[i-1]_size < source_image_size < zoom[i]_size

zoom[i]_size - this is upscaled image.

Work only in slice B mode. In other cases ignored.

Default: false

Type: logic switch

[ -r, --horizontal ]

Tiles divide image on horizontal side without remains. On this side tiles will not be croped.

Work only in slice B mode. In other cases ignored.

 ___ ___ ___  _ _
|   |   |   |  ^
|___|___|___|  Image
|___|___|___| _v_   <- Not full tiles.
|_._|_._|_._| <-- Transparent color (extent=true) or cropped (extent=false)

Default: true

Type: logic switch

[ -t, --vertical ]

Tiles divide image on vertical side without remains. On this side tiles will not be croped.

Work only in slice B mode. In other cases ignored.

|<-image->|
 ___ ___ _ _  _ _
|   |   | |.|  ^
|___|___|_|_| _v_Tile
|   |   | |.|
|___|___|_|_|
           ^-- Transparent color (extent=true) or cropped (extent=false)
         ^--- Not full tiles

Default: false

Type: logic switch

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].