1. 10 3月, 2019 1 次提交
  2. 25 1月, 2019 1 次提交
  3. 17 1月, 2019 1 次提交
  4. 11 1月, 2019 1 次提交
  5. 08 10月, 2018 1 次提交
  6. 24 4月, 2018 1 次提交
  7. 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
  8. 22 12月, 2017 1 次提交
  9. 29 11月, 2017 1 次提交
  10. 07 10月, 2017 1 次提交
  11. 17 9月, 2017 2 次提交
  12. 16 8月, 2017 1 次提交
  13. 12 8月, 2017 2 次提交
  14. 07 8月, 2017 1 次提交
    • A
      Extend image_tag to accept ActiveStorage Attachments and Variants (#30084) · 7c89948c
      Anton Khamets 提交于
      * Extend image_tag to accept ActiveStorage's Attachments and Variants
      
      * Flip resolve_image_source around
      
      * Add tests for the new use-cases of image_tag
      
      * Remove the higher-level test
      
      * Update image_tag documentation
      
      * Add error states into the test suite
      
      * Re-raise polymorhic_url's NoMethodError as ArgumentError
      
      * delegate_missing_to will raise DelegationError instead of NoMethodError
      7c89948c
  15. 06 8月, 2017 1 次提交
  16. 05 8月, 2017 1 次提交
  17. 03 8月, 2017 4 次提交
  18. 02 8月, 2017 3 次提交
  19. 01 8月, 2017 1 次提交