diff --git a/Gemfile b/Gemfile index 94cc0fe..8418eab 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -# 2023-11-11 +# 2023-11-12 source 'https://rubygems.org' diff --git a/README.md b/README.md index abd22e7..e3cdbfb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +# Changes from original + +* Version bump to **1.1.1** +* Keep only **x64** binaries +* Updated **gemspec** + # WebP Generator for Jekyll (Extended) WebP Image Generator for Jekyll Sites can automatically generate WebP images for all images on your static site and serve them when possible. View on [rubygems.org](https://rubygems.org/gems/jekyll-webp). @@ -39,7 +45,7 @@ The plugin can be configured in the site's `_config.yml` file by including the ` # The values here represent the defaults if nothing is set webp: enabled: true - + # The quality of the webp conversion 0 to 100 (where 100 is least lossy) quality: 75 @@ -53,7 +59,7 @@ webp: # 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 + # File extensions for animated gif files gifs: [".gif"] # Set to true to always regenerate existing webp files @@ -71,27 +77,27 @@ webp: # append '.webp' to filename after original extension rather than replacing it. # Default transforms `image.png` to `image.webp`, while changing to true transforms `image.png` to `image.png.webp` append_ext: false - + ##### Extended Features start # Use a different output subdirectory # e.g. value of "/optimized" will create files at "/source/optimized" instead of "/source" output_img_sub_dir: "/optimized" # default "" - + # Generate thumbnails thumbs: true - + # Thumbnails sub directory thumbs_dir: "/thumbs" # generate .5x images generate_50p: true - + ##### Extended Features end ############################################################ ``` ## Simplest use: HTML -In case you don't have control over your webserver then using the `` element and specifying all image formats available is the best option. This way the browser will decide which format to use based on its own capabilities. +In case you don't have control over your webserver then using the `` element and specifying all image formats available is the best option. This way the browser will decide which format to use based on its own capabilities. ``` html @@ -101,17 +107,17 @@ In case you don't have control over your webserver then using the `` el ``` ## Advanced use: Webserver Configuration -If you can, then configuring your webserver to serve your new _.webp_ files to clients that support the format is probably the least problematic approach. This way you don't need to make any changes to your HTML files as your webserver will automatically serve WebP images when the client supports them. +If you can, then configuring your webserver to serve your new _.webp_ files to clients that support the format is probably the least problematic approach. This way you don't need to make any changes to your HTML files as your webserver will automatically serve WebP images when the client supports them. Below is an example for a .htaccess configuration section in an Apache web-server. It will redirect users to webp images whenever possible. ``` #################### -# Attempt to redirect images to WebP if one exists +# Attempt to redirect images to WebP if one exists # and the client supports the file format #################### # check if browser accepts webp -RewriteCond %{HTTP_ACCEPT} image/webp +RewriteCond %{HTTP_ACCEPT} image/webp # check if file is jpg or png RewriteCond %{REQUEST_FILENAME} (.*)\.(jpe?g|png)$ diff --git a/jekyll-webp.gemspec b/jekyll-webp.gemspec index bb464ad..fc44559 100644 --- a/jekyll-webp.gemspec +++ b/jekyll-webp.gemspec @@ -1,4 +1,4 @@ -# 2023-11-11 +# 2023-11-12 # coding: utf-8 require_relative 'lib/jekyll-webp/version' @@ -26,6 +26,7 @@ Gem::Specification.new do |spec| #spec.add_development_dependency "jekyll", ">= 3.0" #spec.add_development_dependency "bundler", ">= 1.5" #spec.add_development_dependency "rake", ">= 1.5" + spec.add_development_dependency "minitest", '~> 5.4', '>= 5.4.3' spec.add_runtime_dependency 'fastimage', '~> 2.0', '>= 2.0.0' spec.add_development_dependency 'jekyll', '~> 3.0'