module ImageProcessing::Vips
Public Class Methods
Source
# File lib/image_processing/vips.rb, line 11 def self.valid_image?(file) ::Vips::Image.new_from_file(file.path, access: :sequential).avg true rescue ::Vips::Error false end
Returns whether the given image file is processable.