image-upscaler
v0.0.7
Published
*** image upscaler ***
Downloads
17
Maintainers
Readme
image-upscaler
Installation
To use image-upscaler, you'll need to include the provided TypeScript file in your project.
- Download the
image-upscaler.ts
file from this repository. - Add the file to your project directory.
Usage
Import the
image-upscaler
class into your TypeScript code:import { upscaleOneImage } from "image-upscaler"; type ModelName = | "realesrgan-x4fast" | "realesrgan-x4plus-anime" | "realesrgan-x4plus" | "remacri" | "ultramix_balanced" | "ultrasharp"; upscaleOneImage({ image: "image.png", model: "realesrgan-x4fast", width: "1024", height: "1024", });
Import the
upscaleOneImage
class into your Javascript code:const { upscaleOneImage } = require("image-upscaler"); upscaleOneImage({ image: "image.png", model: "realesrgan-x4fast", width: "1024", height: "1024", });
Support Me
If you find this project helpful or want to show your appreciation, you can support me by buying me a coffee. Your support is greatly appreciated!