Module: Technoweenie::AttachmentFu::Processors::Gd2Processor::ClassMethods

Defined in:
lib/technoweenie/attachment_fu/processors/gd2_processor.rb

Instance Method Summary collapse

Instance Method Details

#with_image(file, &block) ⇒ Object

Yields a block containing a GD2 Image for the given binary data.



14
15
16
17
# File 'lib/technoweenie/attachment_fu/processors/gd2_processor.rb', line 14

def with_image(file, &block)
  im = GD2::Image.import(file)
  block.call(im)
end