GithubHelp home page GithubHelp logo

narkoz / waifu2x Goto Github PK

View Code? Open in Web Editor NEW
16.0 4.0 2.0 15 KB

Ruby wrapper and CLI for waifu2x

Home Page: https://rubygems.org/gems/waifu2x

License: BSD 2-Clause "Simplified" License

Ruby 98.66% Shell 1.34%
waifu2x ruby-gem

waifu2x's Introduction

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.

waifu2x's People

Contributors

narkoz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.