shrine.cr v0.5.3 Release Notes

Release Date: 2020-05-25 // over 1 year ago
  • 📇 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"]