diff options
author | George Claghorn <george@basecamp.com> | 2018-01-07 10:04:14 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-01-07 10:04:14 -0500 |
commit | a736e82170c6731dee01cf2f20d0dcb0fd2be5c0 (patch) | |
tree | c3b9c802d9e9359aff0e9ab8cd6ae91e24f86aac /activestorage/lib/active_storage | |
parent | 19185c4dea6da07bb408932fc3ed690667f45b7c (diff) | |
download | rails-a736e82170c6731dee01cf2f20d0dcb0fd2be5c0.tar.gz rails-a736e82170c6731dee01cf2f20d0dcb0fd2be5c0.tar.bz2 rails-a736e82170c6731dee01cf2f20d0dcb0fd2be5c0.zip |
Document automatic width-height swapping [ci skip]
Diffstat (limited to 'activestorage/lib/active_storage')
-rw-r--r-- | activestorage/lib/active_storage/analyzer/video_analyzer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activestorage/lib/active_storage/analyzer/video_analyzer.rb b/activestorage/lib/active_storage/analyzer/video_analyzer.rb index 87f36dec71..aa532da201 100644 --- a/activestorage/lib/active_storage/analyzer/video_analyzer.rb +++ b/activestorage/lib/active_storage/analyzer/video_analyzer.rb @@ -16,6 +16,8 @@ module ActiveStorage # ActiveStorage::VideoAnalyzer.new(blob).metadata # # => { width: 640, height: 480, duration: 5.0, angle: 0, aspect_ratio: [4, 3] } # + # When a video's angle is 90 or 270 degrees, its width and height are automatically swapped for convenience. + # # This analyzer requires the {ffmpeg}[https://www.ffmpeg.org] system library, which is not provided by Rails. class Analyzer::VideoAnalyzer < Analyzer def self.accept?(blob) |