Skip image analysis on ImageMagick error
This commit is contained in:
parent
f0445213d8
commit
165785e8cf
|
@ -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 New Issue