From 6133dad86970951094bdb4a603bc80c4968a9667 Mon Sep 17 00:00:00 2001 From: Guilherme Mansur Date: Tue, 23 Apr 2019 16:11:10 -0400 Subject: 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. --- activestorage/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activestorage/CHANGELOG.md') diff --git a/activestorage/CHANGELOG.md b/activestorage/CHANGELOG.md index d524ecf7d6..ff5dd884e3 100644 --- a/activestorage/CHANGELOG.md +++ b/activestorage/CHANGELOG.md @@ -1,3 +1,8 @@ +* Don't raise when analyzing an unsupported image type by ImageMagick + Fixes: #36065 + + *Guilherme Mansur* + * Permit generating variants of BMP images. *Younes Serraj* -- cgit v1.2.3