Skip to content

Commit

Permalink
Add option in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
le0pard committed Jan 31, 2019
1 parent ff07a85 commit 5e65181
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Encode png, jpg or tiff image to webp with options:
Possible encode options:

* **lossless** (int) - Lossless encoding (0=lossy(default), 1=lossless)
* **near_lossless** (int) - Use near-lossless image preprocessing (0=maximum preprocessing, 100=no preprocessing(default))
* **quality** (float) - between 0 (smallest file) and 100 (biggest)
* **method** (int) - quality/speed trade-off (0=fast, 6=slower-better)
* **target\_size** (int) - if non-zero, set the desired target size in bytes. Takes precedence over the 'compression' parameter
Expand Down Expand Up @@ -155,7 +156,7 @@ For integration with Rails 3+ you can use very simple rake task:
require 'webp-ffi'

namespace :assets do
desc "Create .gz versions of assets"
desc "Create .webp versions of assets"
task :webp => :environment do
image_types = /\.(?:png|jpe?g)$/

Expand Down

0 comments on commit 5e65181

Please sign in to comment.