Class: ActiveStorage::Analyzer::ImageAnalyzer::ImageMagick

Inherits:
ActiveStorage::Analyzer::ImageAnalyzer show all
Defined in:
lib/active_storage/analyzer/image_analyzer/image_magick.rb

Overview

This analyzer relies on the third-party MiniMagick gem. MiniMagick requires the ImageMagick system library.

Instance Attribute Summary

Attributes inherited from ActiveStorage::Analyzer

#blob

Class Method Summary collapse

Methods inherited from ActiveStorage::Analyzer::ImageAnalyzer

#metadata

Methods inherited from ActiveStorage::Analyzer

analyze_later?, #initialize, #metadata

Constructor Details

This class inherits a constructor from ActiveStorage::Analyzer

Class Method Details

.accept?(blob) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/active_storage/analyzer/image_analyzer/image_magick.rb', line 7

def self.accept?(blob)
  super && ActiveStorage.variant_processor == :mini_magick
end