Module: ImageProcessing::MiniMagick
- Extended by:
- Chainable
- Includes:
- DeprecatedApi
- Defined in:
- lib/image_processing/mini_magick.rb,
lib/image_processing/mini_magick/deprecated_api.rb
Defined Under Namespace
Modules: DeprecatedApi Classes: Processor
Class Method Summary collapse
Methods included from Chainable
branch, call, convert, custom, default_options, loader, method_missing, operation, saver, source
Methods included from DeprecatedApi
deprecated_processing_method, included
Class Method Details
.valid_image?(file) ⇒ Boolean
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/image_processing/mini_magick.rb', line 9 def self.valid_image?(file) ::MiniMagick::Tool::Convert.new do |convert| convert.regard_warnings convert << file.path convert << "null:" end true rescue ::MiniMagick::Error false end |