1. 24 4月, 2018 1 次提交
  2. 23 4月, 2018 4 次提交
  3. 18 4月, 2018 1 次提交
    • J
      Use ImageProcessing gem for ActiveStorage variants · ca129685
      Janko Marohnić 提交于
      ImageProcessing gem is a wrapper around MiniMagick and ruby-vips, and
      implements an interface for common image resizing and processing. This
      is the canonical image processing gem recommended in [Shrine], and
      that's where it developed from. The initial implementation was extracted
      from Refile, which also implements on-the-fly transformations.
      
      Some features that ImageProcessing gem adds on top of MiniMagick:
      
        * resizing macros
          - #resize_to_limit
          - #resize_to_fit
          - #resize_to_fill
          - #resize_and_pad
        * automatic orientation
        * automatic thumbnail sharpening
        * avoids the complex and inefficient MiniMagick::Image class
        * will use "magick" instead of "convert" on ImageMagick 7
      
      However, the biggest feature of the ImageProcessing gem is that it has
      an alternative implementation that uses libvips. Libvips is an
      alternative to ImageMagick that can process images very rapidly (we've
      seen up 10x faster than ImageMagick).
      
      What's great is that the ImageProcessing gem provides the same interface
      for both implementations. The macros are named the same, and the libvips
      implementation does auto orientation and thumbnail sharpening as well;
      only the operations/options specific to ImageMagick/libvips differ. The
      integration provided by this PR should work for both implementations.
      
      The plan is to introduce the ImageProcessing backend in Rails 6.0 as the
      default backend and deprecate the MiniMagick backend, then in Rails 6.1
      remove the MiniMagick backend.
      ca129685
  4. 10 4月, 2018 1 次提交
  5. 08 4月, 2018 2 次提交
  6. 07 4月, 2018 2 次提交
  7. 06 4月, 2018 1 次提交
  8. 27 3月, 2018 1 次提交
  9. 19 3月, 2018 2 次提交
  10. 14 3月, 2018 1 次提交
  11. 13 3月, 2018 3 次提交
  12. 07 3月, 2018 3 次提交
  13. 06 3月, 2018 5 次提交
  14. 05 3月, 2018 2 次提交
  15. 04 3月, 2018 1 次提交
    • K
      Merge Previews/Variants controller into one Representations controller. · 0f302b89
      Kasper Timm Hansen 提交于
      Since ActiveStorage::Blob::Representable unifies the idea of previews and
      variants under one roof as representation, we may as well have the
      controllers follow suit.
      
      Thus ActiveStorage::RepresenationsController enters the fray. I've copied
      the old tests for both previews and variants and unified those as well.
      0f302b89
  16. 03 3月, 2018 1 次提交
  17. 01 3月, 2018 2 次提交
  18. 27 2月, 2018 3 次提交
  19. 26 2月, 2018 1 次提交
  20. 25 2月, 2018 2 次提交
    • E
      Use lazy load hook to configure ActiveStorage::Blob · eb834811
      Eugene Kenny 提交于
      `to_prepare` callbacks are run during initialization; using one here
      meant that `ActiveStorage::Blob` would be loaded when the app boots,
      which would in turn load `ActiveRecord::Base`.
      
      By using a lazy load hook to configure `ActiveStorage::Blob` instead,
      we can avoid loading `ActiveRecord::Base` unnecessarily.
      eb834811
    • G
      Support varying ICO files · 3915a470
      George Claghorn 提交于
      Closes #32096.
      3915a470
  21. 21 2月, 2018 1 次提交