StoreDimensions plugin implemented
The StoreDimensions
plugin extracts dimensions of uploaded images and stores them into the metadata.
class Uploader < Shrine
load_plugin(Shrine::Plugins::StoreDimensions,
analyzer: Shrine::Plugins::StoreDimensions::Tools::BuiltIn)
finalize_plugins!
end
image.metadata["width"]
image.metadata["height"]