Skip to content

Instantly share code, notes, and snippets.

View m4tbat's full-sized avatar

Matteo Battaglio m4tbat

View GitHub Profile
@m4tbat
m4tbat / image_tiler.py
Last active December 11, 2015 17:38
This script takes an image in input, resizes it at N (customizable) scale levels and generates tiles out of each scaled version of the image, allowing to specify the resolution of the tiles.It assumes that ImageMagick is installed on your system.
#
# Usage example:
# python path/to/image_tiler.py path/to/huge/image.png 256x256 3
#
import glob
import os
import re
import sys
import subprocess