method

metadata

rails latest stable - Class: ActiveStorage::Analyzer::ImageAnalyzer
metadata()
public

No documentation available.

# File activestorage/lib/active_storage/analyzer/image_analyzer.rb, line 19
    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