Parent

Methods

Files

Class/Module Index [+]

Quicksearch

Dragonfly::ImageMagick::Encoder

Public Instance Methods

encode(temp_object, format, args='') click to toggle source
# File lib/dragonfly/image_magick/encoder.rb, line 43
def encode(temp_object, format, args='')
  format = format.to_s.downcase
  throw :unable_to_handle unless supported_formats.include?(format.to_sym)
  details = identify(temp_object)

  if details[:format] == format.to_sym && args.empty?
    temp_object
  else
    convert(temp_object, args, format)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.