Skip to Content Skip to Search

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

Methods
A

Constants

AXIS_SWAPPING_ORIENTATIONS = 5..8
 

Orientations 5 to 8 involve a 90 or 270 degree rotation, so the stored width and height are transposed. This is the same libvips field that autorot reads when generating variants.

Class Public methods

accept?(blob)

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