Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@jimp/plugin-scale
Advanced tools
Scale an image.
Uniformly scales the image by a factor.
import jimp from 'jimp';
async function main() {
const image = await jimp.read('test/image.png');
image.scale(2);
image.scale(2, jimp.RESIZE_BEZIER);
}
main();
Scale the image to the largest size that fits inside the rectangle that has the given width and height.
import jimp from 'jimp';
async function main() {
const image = await jimp.read('test/image.png');
image.scaleToFit(100, 100);
}
main();
v0.14.0 (Mon Jun 29 2020)
@jimp/core
, jimp
FAQs
scale an image.
The npm package @jimp/plugin-scale receives a total of 747,232 weekly downloads. As such, @jimp/plugin-scale popularity was classified as popular.
We found that @jimp/plugin-scale demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.