
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
img-reduce-size-js
Advanced tools
image resize using js. reduce image size and ready to upload. image resize and return BLOB can be converted into Base64
npm install --save img-reduce-size-js
Also available to install globally:
npm install --global img-reduce-size-js
To include img-reduce-size-js on your website or npm application, use any of the following methods.
const { imageResize } = require("img-reduce-size-js");
import { imageResize } from "img-reduce-size-js"
imageResize({
file: e.target.files[0],
maxSize: 500
}).then(function (resizedImage) {
console.log("upload resized image", resizedImage)
}).catch(function (err) {
console.error(err);
});
FOR BASE64
imageResize({
file: e.target.files[0],
maxSize: 500
}).then(function (blob) {
var reader = new FileReader();
reader.readAsDataURL(blob);
reader.onloadend = function () {
var base64data = reader.result;
console.log(base64data);
}
}).catch(function (err) {
console.error(err);
});
Apache-2.0. Copyright (c) Arsalan Akhtar, Inc.
FAQs
Reduce image using js
The npm package img-reduce-size-js receives a total of 11 weekly downloads. As such, img-reduce-size-js popularity was classified as not popular.
We found that img-reduce-size-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.