module ImageProcessing::MiniMagick
Public Class Methods
Source
# File lib/image_processing/mini_magick.rb, line 9 def self.valid_image?(file) ::MiniMagick::Tool::Convert.new do |convert| convert << file.path convert << "null:" end true rescue ::MiniMagick::Error false end
Returns whether the given image file is processable.