This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, os | |
from PIL import Image | |
import math | |
# Does all the image processing | |
# Just give it a directory of images in .tif/.tiff format that are not processed | |
# It will find the lowest max zoom, and resize all larger images to that zoom level | |
# Then it will convert all the images to pyramidal tiff format, and put them into a subdirectory | |
# Then it will copy everything from that subdirectory to /mnt/images/dir |