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
Methods included from Chainable
apply, branch, call, convert, custom, loader, method_missing, operation, saver, source
Class Method Details
.valid_image?(file) ⇒ Boolean
8 9 10 11 12 13 14 15 16 |
# File 'lib/image_processing/mini_magick.rb', line 8 def self.valid_image?(file) ::MiniMagick::Tool::Convert.new do |convert| convert << file.path convert << "null:" end true rescue ::MiniMagick::Error false end |