Class: Dragonfly::ImageMagick::Processors::Encode

Inherits:
Object
  • Object
show all
Defined in:
lib/dragonfly/image_magick/processors/encode.rb

Instance Method Summary collapse

Instance Method Details

#call(content, format, args = "") ⇒ Object



10
11
12
# File 'lib/dragonfly/image_magick/processors/encode.rb', line 10

def call(content, format, args="")
  content.process!(:convert, args, 'format' => format)
end

#update_url(attrs, format, args = "") ⇒ Object



6
7
8
# File 'lib/dragonfly/image_magick/processors/encode.rb', line 6

def update_url(attrs, format, args="")
  attrs.ext = format.to_s
end