Waifu2x
Waifu2x is a ruby wrapper and CLI for
waifu2x, which provides Noise Reduction
and 2x Upscaling for anime style images.
Installation
Install it from rubygems:
gem install waifu2x
Or add to your application's Gemfile:
gem 'waifu2x'
and run:
bundle install
Usage
Waifu2x.convert('image.png', nil, { scale: 2 })
Waifu2x.convert('http://example.net/image.png', nil, { scale: 2 })
Waifu2x.convert('image.png', 'converted.png', { noise: 0, scale: 2 })
CLI usage
waifu2x sample.jpg -s 2
waifu2x http://example.net/sample.jpg -s 2
waifu2x sample.jpg output.jpg -n 0 -s 2
License
Released under the BSD 2-clause license. See LICENSE.txt for details.