method

metadata

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ImageAnalyzer
metadata() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/analyzer/image_analyzer.rb, line 17
    def metadata
      read_image do |image|
        if rotated_image?(image)
          { width: image.height, height: image.width }
        else
          { width: image.width, height: image.height }
        end
      end
    end
Register or log in to add new notes.