This repository has been archived by the owner on Dec 5, 2018. It is now read-only.
A gem providing a ruby interface to Google WebP Codec.
License
jjuliano/ruby-webp
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
README for ruby-webp ===================== Ruby-webp is a gem providing a ruby interface to Google WebP Codec. To install, type 'gem install ruby-webp' Usage: require 'rubygems' require 'ruby-webp' # Encoder Example 1 cwebp = WebP::Encoder.new cwebp.compression_factor = 70 cwebp.input_file = "picture.png" cwebp.output_file = "picture.webp" cwebp.show_config => "cwebp -q 70 picture.png -o picture.webp" cwebp.encode # Encoder Example 2 cwebp = WebP::Encoder.new cwebp.spatial_noise_shaping = 70 cwebp.deblocking_filter = 50 cwebp.strong_filtering = true cwebp.auto_filter = true cwebp.target_size = 60000 cwebp.input_file = "picture.png" cwebp.output_file = "picture.webp" cwebp.show_config => "cwebp -sns 70 -f 50 -strong -af -size 60000 picture.png -o picture.webp" cwebp.encode # Decoder Example 1 dwebp = WebP::Decoder.new dwebp.input_file = "picture.webp" dwebp.ouput_file = "output.png" dwebp.show_config => "dwebp picture.webp -o output.png" dwebp.decode # Decoder Example 2 dwebp = WebP::Decoder.new dwebp.input_file = "picture.webp" dwebp.output_ppm = true dwebp.output_file = "output.ppm" dwebp.show_config => "dwebp picture.webp -ppm -o output.ppm" dwebp.decode
About
A gem providing a ruby interface to Google WebP Codec.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published