mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Skip image analysis on ImageMagick error
This commit is contained in:
parent
f0445213d8
commit
165785e8cf
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,9 @@ module ActiveStorage
|
|||
rescue LoadError
|
||||
logger.info "Skipping image analysis because the mini_magick gem isn't installed"
|
||||
{}
|
||||
rescue MiniMagick::Error => error
|
||||
logger.error "Skipping image analysis due to an ImageMagick error: #{error.message}"
|
||||
{}
|
||||
end
|
||||
|
||||
def rotated_image?(image)
|
||||
|
|
Loading…
Reference in a new issue