Skip to content

Commit

Permalink
Updating webp tools to v0.6.1, upgrading release to v1.0, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sverrirs committed Jan 9, 2018
1 parent 302359e commit 0128e9b
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# WebP Generator for Jekyll
WebP Image Generator for Jekyll Sites can automatically generate WebP images for all images on your static site and serve them when possible.
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).

> Read more about this tool on my blog at <a href="https://blog.sverrirs.com/2016/06/webp-generator-for-jekyll-sites.html" target="_blank">blog.sverrirs.com</a>
## Installation
Expand All @@ -11,7 +12,7 @@ gem install jekyll-webp

The release includes all necessary files to run, including the WebP redistributable executable files.

> Currently the release includes the v0.5.1 version of the WebP utilities for Windows, Linux and Mac OS X 10.9 (Mountain Lion). Other versions and releases can be downloaded directly from <a href="https://developers.google.com/speed/webp/docs/precompiled" target="_blank">the Google page</a>.
> Currently the release includes the v0.6.1 version of the WebP utilities for Windows, Linux and Mac OS X 10.9 (Mountain Lion). Other versions and releases can be downloaded directly from <a href="https://developers.google.com/speed/webp/docs/precompiled" target="_blank">the Google page</a>.
Add the gem to your `Gemfile` and to Jekyll's `_config.yml` then run `jekyll serve` again and you should see the generator run during site generation.

Expand Down Expand Up @@ -62,7 +63,7 @@ In case you don't have control over your webserver then using the `<picture>` 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.

Expand Down
Binary file modified bin/linux-x64-cwebp
Binary file not shown.
Binary file modified bin/linux-x86-cwebp
Binary file not shown.
Binary file modified bin/osx-cwebp
Binary file not shown.
Binary file modified bin/win-x64-cwebp.exe
Binary file not shown.
Binary file modified bin/win-x86-cwebp.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion jekyll-webp.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.license = "MIT"

spec.summary = %q{WebP image generator for Jekyll 3 websites}
spec.description = %q{WebP Image Generator for Jekyll 3 Sites that automatically generate WebP images for all images on your static site and serves them when possible.}
spec.description = %q{WebP Image Generator for Jekyll 3 Sites that automatically generate WebP images for all images on your static site and serves them when possible. Includes the v0.6.1 version of the WebP utilities for Windows, Linux and Mac OS X 10.9 (Mountain Lion)}

spec.files = Dir['CODE_OF_CONDUCT.md', 'README.md', 'LICENSE', 'Rakefile', '*.gemspec', 'Gemfile', 'lib/**/*', 'spec/**/*', 'bin/**/*']
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll-webp/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Jekyll
module Webp
VERSION = "1.0.0"
# When modifying remember to issue a new tag command in git before committing, then push the new tag
# git tag -a v0.1.0 -m "Gem v0.1.0"
# git tag -a v1.0.0 -m "Gem v1.0.0"
# git push origin --tags
end #module Webp
end #module Jekyll

0 comments on commit 0128e9b

Please sign in to comment.