Skip to content

Instantly share code, notes, and snippets.

@dutygeeks
Created January 22, 2012 03:19
Show Gist options
  • Save dutygeeks/1655310 to your computer and use it in GitHub Desktop.
Save dutygeeks/1655310 to your computer and use it in GitHub Desktop.
class Optipng < Nanoc3::Filter
identifier :optipng
type :binary
def run(filename, params={})
system(
'optipng',
'-quiet',
'-o', params[:level].to_s,
filename,
'-out', output_filename
)
end
end
@dutygeeks
Copy link
Author

require brew install optipng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment