We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46f8a9c commit 1c9c741Copy full SHA for 1c9c741
lib/paperclip/paperclip_processors/transcoder.rb
@@ -56,6 +56,18 @@ def make
56
if output_is_image?
57
@time = @time.call(@meta, @options) if @time.respond_to?(:call)
58
@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
71
end
72
73
if @convert_options.present?
0 commit comments