Skip to content

Instantly share code, notes, and snippets.

@dutygeeks
Created January 22, 2012 00:45
Show Gist options
  • Save dutygeeks/1654816 to your computer and use it in GitHub Desktop.
Save dutygeeks/1654816 to your computer and use it in GitHub Desktop.
class Smusher < Nanoc3::Filter
identifier :smusher
type :binary
# "output_finename"
def run(filename, params={})
system(
'smusher',
filename
)
end
# didn't work too
# def run(content, params={})
# ::Smusher.optimize_images_in_folder(content)
# end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment