Package Exports
- super-resolution-scraper
- super-resolution-scraper/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (super-resolution-scraper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Super Resolution Scraper
A scraper for Super Resolution image with torch-srgan AI made for Discord/Whatsapp bot.
Features
- Upscales image 2x
- Upscales image 4x
Instalation
npm install super-resolution-scraper
Usage
There is two function you can use:
srgan2x(url)
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 |
---|---|---|
![]() |
![]() |