
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
upscayl-node
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Upscayl node prepares the UPSCAYL CORE to run in NodeJS.
const { join } = require("path");
const { upscaler } = require("upscayl-node");
const run = async () => {
const outputImagePath = await upscaler.upscaleImage(
join(__dirname, "./image-test.png"),
join(__dirname, "./image-test-result.png")
);
};
run();
| Free and Open Source AI Image Upscaler
Upscayl lets you enlarge and enhance low-resolution images using advanced AI algorithms. Enlarge images without losing quality. It's almost like magic! 🎩🪄
Original repo: https://github.com/upscayl/upscayl
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js.
If this is a brand new project, make sure to create a package.json
first with
the npm init
command.
Installation is done using the
npm install
command:
$ npm install upscayl-node
This method allows you to load the default AI models.
This method allows you to obtain the path of the models. It is useful if you want to change the default model that upscales the image.
This method allows you to add a path where you have a custom model to the list of models.
This method allows you to upscale an image with various custom options.
const { join } = require("path");
const { upscaler } = require("upscayl-node");
const run = async () => {
// Once we have the upscaler with models loaded we can run it
const outputImagePath = await upscaler.upscaleImage(
join(__dirname, "./image-test.png"), // Absolute path from image to be upscaled
join(__dirname, "./image-test-result.png") // Absolute path from image upscaled
);
};
run();
Absolute image path of the image to be upscaled. Only png, jpg or webp images are accepted.
Absolute image path of the resulting image. You can choose a different image extension, which will change the image format of the original if you wish. Only png, jpg or webp are allowed.
Property | Description | Type | Default |
---|---|---|---|
model | Absolute path of the model used to upscale the image. | string | upscaler.getModels()[0] |
scale | Specifies the scale of the resulting image relative to the original image. | number | 2 |
compression | Set the final image compression. | number | 0 |
tileSize | Define the final tile size of the image. | number | 0 |
FAQs
Upscale node package based on upscayl
The npm package upscayl-node receives a total of 118 weekly downloads. As such, upscayl-node popularity was classified as not popular.
We found that upscayl-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.