# File lib/dragonfly/encoding/r_magick_encoder.rb, line 46
      def encode(temp_object, format, encoding={})
        format = format.to_s.downcase
        throw :unable_to_handle unless supported_formats.include?(format.to_sym)
        rmagick_image(temp_object) do |image|
          if image.format.downcase == format
            temp_object # do nothing
          else
            image.format = format
            image
          end
        end
      end