aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/models/variant_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Show ImageProcessing macros in a dedicated exampleJanko Marohnić2018-04-231-3/+13
|
* Rename ActiveStorage.processor to .variant_processorJanko Marohnić2018-04-221-4/+4
|
* Use ImageProcessing gem for ActiveStorage variantsJanko Marohnić2018-04-181-12/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Support varying ICO filesGeorge Claghorn2018-02-241-0/+11
| | | | Closes #32096.
* Extract content types from blob dataGeorge Claghorn2018-01-151-1/+1
|
* Extract Analyzable and Representable concernsGeorge Claghorn2018-01-101-1/+1
|
* Restore support for the -layers transformationGeorge Claghorn2018-01-021-0/+8
|
* Add support for combined MiniMagick transformationsRobert Glaser2017-12-221-0/+14
|
* Convert non-web image (e.g. PSD) variants to PNGGeorge Claghorn2017-12-181-9/+19
|
* Restrict variants to variable image blobsGeorge Claghorn2017-12-151-0/+6
|
* Replace variation key use with SHA256 of key to prevent long filenameskhall2017-10-051-0/+5
| | | | | | | If a variant has a large set of options associated with it, the generated filename will be too long, causing Errno::ENAMETOOLONG to be raised. This change replaces those potentially long filenames with a much more compact SHA256 hash. Fixes #30662.
* Preview PDFs and videosGeorge Claghorn2017-09-281-3/+3
|
* Should escape regexp wildcard character `.`Koichi ITO2017-08-141-2/+2
|
* Use frozen string literal in Active StorageKoichi ITO2017-08-121-0/+2
|
* Fix ruby warningsyuuji.yaginuma2017-08-051-3/+3
| | | | | | | | | | This fixes following warnings: ``` test/models/variant_test.rb:11: warning: ambiguous first argument; put parentheses or a space even after `/' operator lib/active_storage/attached/macros.rb:63: warning: instance variable @active_storage_attached_highlights not initialized lib/active_storage/attached/macros.rb:25: warning: instance variable @active_storage_attached_avatar not initialized ```
* Add 'activestorage/' from commit '3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58'Rafael Mendonça França2017-07-311-0/+27
git-subtree-dir: activestorage git-subtree-mainline: 0d58e7e478e79c2d6b2a39a4444d2a17a903b2a6 git-subtree-split: 3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58