Created
January 22, 2012 00:45
-
-
Save dutygeeks/1654816 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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