1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activestorage/test/analyzer
Guilherme Mansur 6133dad869 Don't fail ImageAnalyzer on unsupported types
Fix: #36065

The IamgeAnalyzer passes a image to ImageMagick without checking if the
image is supported by ImageMagick. This patch checks that image is
supported and if not logs an error and returns an empty hash instead of
raising an error. This is the same error handling we do when we
encounter a LoadError when mini_magick is not installed.
2019-04-24 07:59:12 -04:00
..
image_analyzer_test.rb Don't fail ImageAnalyzer on unsupported types 2019-04-24 07:59:12 -04:00
video_analyzer_test.rb Move #extract_metadata_from to ActiveStorage's TestHelper 2018-04-25 15:28:30 -05:00