Skip to content

Instantly share code, notes, and snippets.

@grimen
Created November 27, 2011 13:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grimen/1397536 to your computer and use it in GitHub Desktop.
Save grimen/1397536 to your computer and use it in GitHub Desktop.
carrierwave-smusher
module CarrierWave
module Smusher
module ClassMethods
def mush( )
process :mush
end
end
def mush( )
manipulate! do |img|
::Smusher.optimize_image( img.path, { :service => 'SmushIt', :quiet => true } )
img
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment