Skip to content

Instantly share code, notes, and snippets.

View mgillman's full-sized avatar

Michael Gillman mgillman

View GitHub Profile
project_path = File.dirname(__FILE__) + "/"
utils_dir = "utilities/"
utils_path = project_path + utils_dir
# callback - on_sprite_saved
# http://compass-style.org/help/tutorials/configuration-reference/
on_sprite_saved do |filename|
if File.exists?(filename)
# Post process sprite image
postprocesspng(filename, utils_path)