Skip to content

Commit 98783a0

Browse files
committed
Uses av filter_rotate instead
1 parent 1c9c741 commit 98783a0

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

lib/paperclip/paperclip_processors/transcoder.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,7 @@ def make
5656
if output_is_image?
5757
@time = @time.call(@meta, @options) if @time.respond_to?(:call)
5858
@cli.filter_seek @time
59-
60-
if @auto_rotate && !@meta[:rotate].nil?
61-
log "Adding rotation #{@meta[:rotate]}"
62-
case @meta[:rotate]
63-
when 90
64-
@convert_options[:output][:vf] = "'transpose=1'"
65-
when 180
66-
@convert_options[:output][:vf] = "'vflip, hflip'"
67-
when 270
68-
@convert_options[:output][:vf] = "'transpose=2'"
69-
end
70-
end
59+
@cli.filter_rotate @meta[:rotate] if @auto_rotate && !@meta[:rotate].nil?
7160
end
7261

7362
if @convert_options.present?

0 commit comments

Comments
 (0)