module Shrine::Plugins::StoreDimensions::InstanceMethods

  1. lib/shrine/plugins/store_dimensions.rb

Methods

Public Instance

  1. extract_metadata

Public Instance methods

extract_metadata (io, **options)

We update the metadata with “width” and “height”.

[show source]
   # File lib/shrine/plugins/store_dimensions.rb
75 def extract_metadata(io, **options)
76   width, height = self.class.extract_dimensions(io)
77 
78   super.merge!("width" => width, "height" => height)
79 end