Module: CarrierwaveMatte::Processor::InstanceMethods
- Defined in:
- lib/carrierwave_matte/processor.rb
Instance Method Summary collapse
Instance Method Details
#matte(color) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/carrierwave_matte/processor.rb', line 17 def matte(color) manipulate! do |img| img.background color, "-flatten", "+matte" img = yield(img) if block_given? img end end |