W3cubDocs

/Ruby on Rails 7.0

class ActiveStorage::Analyzer::ImageAnalyzer::Vips

Parent:
ActiveStorage::Analyzer::ImageAnalyzer

This analyzer relies on the third-party ruby-vips gem. Ruby-vips requires the libvips system library.

Constants

ROTATIONS

Public Class Methods

accept?(blob) Show source
# File activestorage/lib/active_storage/analyzer/image_analyzer/vips.rb, line 7
def self.accept?(blob)
  super && ActiveStorage.variant_processor == :vips
end

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.