From a736e82170c6731dee01cf2f20d0dcb0fd2be5c0 Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Sun, 7 Jan 2018 10:04:14 -0500 Subject: Document automatic width-height swapping [ci skip] --- activestorage/lib/active_storage/analyzer/video_analyzer.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activestorage') 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) -- cgit v1.2.3