Module: Jekyll::Webp
- Defined in:
- lib/jekyll-webp.rb,
lib/jekyll-webp/version.rb,
lib/jekyll-webp/defaults.rb,
lib/jekyll-webp/webpExec.rb,
lib/jekyll-webp/webpGenerator.rb
Defined Under Namespace
Classes: WebpExec, WebpFile, WebpGenerator
Constant Summary collapse
- VERSION =
"1.0.0"- DEFAULT =
The default configuration for the Webp generator The values here represent the defaults if nothing is set
{ 'enabled' => false, # The quality of the webp conversion 0 to 100 (where 100 is least lossy) 'quality' => 75, # Other flags to pass to the webp binary. For a list of valid parameters check here: # https://developers.google.com/speed/webp/docs/cwebp#options 'flags' => "-m 4 -pass 4 -af", # List of directories containing images to optimize, Nested directories will not be checked 'img_dir' => ["/img"], # add ".gif" to the format list to generate webp for animated gifs as well 'formats' => [".jpeg", ".jpg", ".png", ".tiff"], # File extensions for animated gif files 'gifs' => [".gif"], # Set to true to always regenerate existing webp files 'regenerate'=> false, # Local path to the WebP utilities to use (relative or absolute) # Leave as nil to use the cmd line utilities shipped with the gem, override to use your local install 'webp_path' => nil, # List of files or directories to exclude # e.g. custom or hand generated webp conversion files 'exclude' => [], # List of files or directories to explicitly include # e.g. single files outside of the main image directories 'include' => [] }