Skip to content

Commit

Permalink
Update transcoder.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
slaur authored Oct 18, 2018
1 parent 0b4b81e commit 39e92a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/paperclip/paperclip_processors/transcoder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -71,7 +70,9 @@ def make
end
end
end


@cli.add_destination(dst.path)

begin
@cli.run
log "Successfully transcoded #{@basename} to #{dst}"
Expand Down

0 comments on commit 39e92a9

Please sign in to comment.