module ImageProcessing::MiniMagick
def self.valid_image?(file)
def self.valid_image?(file) ::MiniMagick::Tool::Convert.new do |convert| convert << file.path convert << "null:" end true rescue ::MiniMagick::Error false end
def self.valid_image?(file) ::MiniMagick::Tool::Convert.new do |convert| convert << file.path convert << "null:" end true rescue ::MiniMagick::Error false end