module Rails::WebP
Constants
- VERSION
Attributes
encode_options[W]
exclude_dir_regex[W]
force[W]
Public Class Methods
encode_options()
click to toggle source
# File lib/rails/webp.rb, line 14 def encode_options @encode_options ||= { quality: 80, lossless: true, method: 6, alpha_filtering: 2, alpha_compression: 0, alpha_quality: 100 } end
exclude_dir_regex()
click to toggle source
# File lib/rails/webp.rb, line 18 def exclude_dir_regex @exclude_dir_regex ||= nil end
force()
click to toggle source
Source assets that are unchanged will not be processed by default. Set this to true if you wish to process webp images anyway.
# File lib/rails/webp.rb, line 24 def force @force ||= false end