Project

waifu2x

0.01
No commit activity in last 3 years
No release in over 3 years
Noise Reduction and 2x Upscaling for anime style images
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 0.10
~> 10.0

Runtime

 Project Readme

Waifu2x Build Status

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

# convert image.png with 2x upscaling
Waifu2x.convert('image.png', nil, { scale: 2 })

# convert image.png from remote url
Waifu2x.convert('http://example.net/image.png', nil, { scale: 2 })

# convert image.png to converted.png without noise reduction and with 2x upscaling
Waifu2x.convert('image.png', 'converted.png', { noise: 0, scale: 2 })

CLI usage

# convert sample.jpg with 2x upscaling
waifu2x sample.jpg -s 2

# convert sample.jpg from remote url
waifu2x http://example.net/sample.jpg -s 2

# convert sample.jpg to output.jpg without noise reduction and with 2x upscaling
waifu2x sample.jpg output.jpg -n 0 -s 2

License

Released under the BSD 2-clause license. See LICENSE.txt for details.