def make
      dst = Tempfile.new([@basename, @format].compact.join("."))
      dst.binmode

      command = "convert"
      params = [fromfile]
      params += transformation_command
      params << tofile(dst)
      begin
        success = Paperclip.run(command, params.flatten.compact.collect{|e| "'#{e}'"}.join(" "))
      rescue Paperclip::Errors::CommandNotFoundError
        raise Paperclip::Errors::CommandNotFoundError, "There was an error resizing and cropping #{@basename}" if @whiny
      end

      if watermark_path
        command = "composite"
        params = %W[-gravity #{@position} #{watermark_path} #{tofile(dst)}]
        params << tofile(dst)
        begin
          success = Paperclip.run(command, params.flatten.compact.collect{|e| "'#{e}'"}.join(" "))
        rescue Paperclip::Errors::CommandNotFoundError
          raise Paperclip::Errors::CommandNotFoundError, "There was an error processing the watermark for #{@basename}" if @whiny
        end
      end

      dst
    end
def make
      dst = Tempfile.new([@basename, @format].compact.join("."))
      dst.binmode

      command = "convert"
      params = [fromfile]
      params += transformation_command
      params << tofile(dst)
      begin
        success = Paperclip.run(command, params.flatten.compact.collect{|e| "'#{e}'"}.join(" "))
      rescue Paperclip::Errors::CommandNotFoundError
        raise Paperclip::Errors::CommandNotFoundError, "There was an error resizing and cropping #{@basename}" if @whiny
      end

      if watermark_path
        command = "composite"
        params = %W[-gravity #{@position} #{watermark_path} #{tofile(dst)}]
        params << tofile(dst)
        begin
          success = Paperclip.run(command, params.flatten.compact.collect{|e| "'#{e}'"}.join(" "))
        rescue Paperclip::Errors::CommandNotFoundError
          raise Paperclip::Errors::CommandNotFoundError, "There was an error processing the watermark for #{@basename}" if @whiny
        end
      end

      dst
    end
Performs the conversion of the +file+ into a watermark. Returns the Tempfile
 that contains the new image.