Module: Rails::WebP
- Defined in:
- lib/rails/webp.rb,
lib/rails/webp/railtie.rb,
lib/rails/webp/version.rb,
lib/rails/webp/converter.rb,
lib/rails/webp/post_processor.rb
Defined Under Namespace
Classes: Converter, Error, PostProcessor, Railtie
Constant Summary collapse
- VERSION =
"0.1.3"
Class Attribute Summary collapse
- .encode_options ⇒ Object
- .exclude_dir_regex ⇒ Object
-
.force ⇒ Object
Source assets that are unchanged will not be processed by default.
Class Attribute Details
.encode_options ⇒ Object
14 15 16 |
# File 'lib/rails/webp.rb', line 14 def @encode_options ||= { quality: 80, lossless: true, method: 6, alpha_filtering: 2, alpha_compression: 0, alpha_quality: 100 } end |
.exclude_dir_regex ⇒ Object
18 19 20 |
# File 'lib/rails/webp.rb', line 18 def exclude_dir_regex @exclude_dir_regex ||= nil end |
.force ⇒ Object
Source assets that are unchanged will not be processed by default. Set this to true if you wish to process webp images anyway.
24 25 26 |
# File 'lib/rails/webp.rb', line 24 def force @force ||= false end |