Class: ActiveStorage::Analyzer::ImageAnalyzer::Vips

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

Overview

This analyzer relies on the third-party ruby-vips gem. Ruby-vips requires the libvips 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/vips.rb', line 7

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