Created
November 27, 2011 13:08
-
-
Save grimen/1397536 to your computer and use it in GitHub Desktop.
carrierwave-smusher
This file contains 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
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