Skip to content

Instantly share code, notes, and snippets.

View miletbaker's full-sized avatar

Jon Baker miletbaker

View GitHub Profile
@miletbaker
miletbaker / map_tile.rb
Created October 9, 2011 19:11
Ruby script to scale and crop an image into overlay or map tiles for use with Google Maps API, Javascript for display custom map tiles below.
#! /usr/bin/ruby -w
require 'rubygems'
require 'rmagick'
require 'fileutils'
include Magick
ARGV.each do |file|
puts "Processing #{file}"