diff --git a/lib/paperclip/paperclip_processors/transcoder.rb b/lib/paperclip/paperclip_processors/transcoder.rb index d67efea..6e319b0 100755 --- a/lib/paperclip/paperclip_processors/transcoder.rb +++ b/lib/paperclip/paperclip_processors/transcoder.rb @@ -50,7 +50,6 @@ def make if @meta log "Transcoding supported file #{@file.path}" @cli.add_source(@file.path) - @cli.add_destination(dst.path) @cli.reset_input_filters if output_is_image? @@ -71,6 +70,8 @@ def make end end end + + @cli.add_destination(dst.path) begin @cli.run @@ -83,7 +84,7 @@ def make # If the file is not supported, just return it dst << @file.read dst.close - end + end dst end