diff options
author | George Claghorn <george@basecamp.com> | 2018-01-19 10:47:18 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-01-19 10:47:34 -0500 |
commit | 2450fc24e30121863403517b44dfdfa7cb25e33a (patch) | |
tree | 79219c87c1c317d0a6c99071959726f88fb65e1f /activestorage/CHANGELOG.md | |
parent | acbcef6094d61eb8c4820295620d170743a4bd71 (diff) | |
download | rails-2450fc24e30121863403517b44dfdfa7cb25e33a.tar.gz rails-2450fc24e30121863403517b44dfdfa7cb25e33a.tar.bz2 rails-2450fc24e30121863403517b44dfdfa7cb25e33a.zip |
Preserve display aspect ratio for videos with rectangular samples
Diffstat (limited to 'activestorage/CHANGELOG.md')
-rw-r--r-- | activestorage/CHANGELOG.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activestorage/CHANGELOG.md b/activestorage/CHANGELOG.md index 5e01297fc1..061898d143 100644 --- a/activestorage/CHANGELOG.md +++ b/activestorage/CHANGELOG.md @@ -1,3 +1,12 @@ +* Preserve display aspect ratio when extracting width and height from videos + with rectangular samples in `ActiveStorage::Analyzer::VideoAnalyzer`. + + When a video contains a display aspect ratio, emit it in metadata as + `:display_aspect_ratio` rather than the ambiguous `:aspect_ratio`. Compute + its height by scaling its encoded frame width according to the DAR. + + *George Claghorn* + * Use `after_destroy_commit` instead of `before_destroy` for purging attachments when a record is destroyed. |