super-resolution-scraper

1.0.6 • Public • Published

Super Resolution Scraper

A scraper for Super Resolution image with torch-srgan AI made for Discord/Whatsapp bot.

npm NPM npm npm

Features

  • Upscales image 2x
  • Upscales image 4x

Instalation

npm install super-resolution-scraper

Usage

There is two function you can use:

  1. srgan2x(url)
  2. srgan4x(url)

Code Example:

const { srgan2x, srgan4x } = require('super-resolution-scraper');

// Upscales 200%
srgan2x(<IMG URL HERE>).then((res) => console.log(res));

// Upscales 400%
srgan4x(<IMG URL HERE>).then((res) => console.log(res));

Sample

for the samples i am using bad resolution meme xD.

Original Upscaled 2x Upscaled 4x
sample_ori upscaled_2x upscaled_4x

Donate

PaypalTrakteer

Package Sidebar

Install

npm i super-resolution-scraper

Weekly Downloads

32

Version

1.0.6

License

MIT

Unpacked Size

35.1 kB

Total Files

5

Last publish

Collaborators

  • hataken999