Module: ImageProcessing::MiniMagick
- Extended by:
- Chainable
- Defined in:
- lib/image_processing/mini_magick.rb
Defined Under Namespace
Classes: Processor
Constant Summary
Constants included from Chainable
Class Method Summary collapse
-
.valid_image?(file) ⇒ Boolean
Returns whether the given image file is processable.
Methods included from Chainable
apply, branch, call, convert, loader, method_missing, operation, saver, source
Class Method Details
.valid_image?(file) ⇒ Boolean
Returns whether the given image file is processable.
9 10 11 12 13 14 15 16 17 |
# 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 |