aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/CHANGELOG.md
diff options
context:
space:
mode:
authorGuilherme Mansur <guilherme.mansur@shopify.com>2019-04-23 16:11:10 -0400
committerGuilherme Mansur <guilherme.mansur@shopify.com>2019-04-24 07:59:12 -0400
commit6133dad86970951094bdb4a603bc80c4968a9667 (patch)
treec5823ae44fc4a88e39d52b1a9cfb672c27527aef /activestorage/CHANGELOG.md
parentdf35204ed190086ec95b308ac1764571344005a6 (diff)
downloadrails-6133dad86970951094bdb4a603bc80c4968a9667.tar.gz
rails-6133dad86970951094bdb4a603bc80c4968a9667.tar.bz2
rails-6133dad86970951094bdb4a603bc80c4968a9667.zip
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.
Diffstat (limited to 'activestorage/CHANGELOG.md')
-rw-r--r--activestorage/CHANGELOG.md5
1 files changed, 5 insertions, 0 deletions
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*