Skip to content
A very simple ImageMagick-based bash script that takes an image and tiles it.
Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
image-tiler.sh

README.md

Image Tiler

A very simple ImageMagick-based bash script that takes an image and tiles it. This script depends on ImageMagick, so make sure that's installed.

Usage

./image-tiler.sh -w <width> -h <height> -f <jpg|png|pdf|...> [-r <resize>] [-s <0-1>] <files...>

Each file will be tiled on its own, with each file's output being written to <filename>-tiled.<format>. Note that this script cannot combine different files into a single tiled image.

Required:

  • -w <width> — Output image width in pixels.
  • -h <height> — Output image height in pixels.
  • -f <format> — Output image format passed to ImageMagick (jpg, png, pdf, ...).

Optional:

  • -r <resize> — The input image will be resized to <width>, x<height>, or <width>x<height> (in pixels).
  • -s <shift> — Every second column will be shifted by this ratio (0.5 means a shifting the image halfway).
You can’t perform that action at this time.