Compress image up to maximum size 100kb at NodeJS or React Native

0 votes
To do so, I've looked into and tested a variety of libraries. The main goal of the work is to compress images (jpeg or png) to less than 100KB in size, regardless of their quality or resolution. It's fine if the quality and resolution are poor, but the file size should not exceed 100KB.

Is there anyone who could give me some advice?

I tried the imagemin and compress-images libraries, but they didn't compress the image very well, and I needed a result that was less than 100KB. So, despite the fact that I have a 5MB image file, I'd need it compressed to less than 100KB.
May 27 in Node-js by Vaani
• 7,020 points
98 views

1 answer to this question.

0 votes

You can follow this link : https://www.npmjs.com/package/image-conversion 
This will have all the explanation for your question
This worked the best for me

answered May 27 by Neha
• 8,560 points

Related Questions In Node-js

0 votes
0 answers

How to crop screenshot or image (.png) in nodejs?

Consider a image file .png Consider you have ...READ MORE

Jun 21 in Node-js by Vaani
• 7,020 points
10 views
0 votes
1 answer

How to check if a collection exists in Mongodb native nodejs driver?

Hello @kartik, The collectionNames method of the native driver's Db object accepts ...READ MORE

answered Nov 27, 2020 in Node-js by Niroj
• 82,720 points
9,265 views
0 votes
1 answer

How to reload or re-render the entire page using AngularJS?

Hello @kartik< For the record, to force angular ...READ MORE

answered Jul 15, 2020 in Node-js by Niroj
• 82,720 points
1,717 views
0 votes
1 answer

How to extract request http headers from a request using NodeJS connect?

Hello @kartik, To see a list of HTTP ...READ MORE

answered Jul 15, 2020 in Node-js by Niroj
• 82,720 points
13,566 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
967 views
0 votes
1 answer
0 votes
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,440 points
622 views
0 votes
1 answer

NodeJS - Upload ~36MB file to VirusTotal failing

The VirusTotal file/scan API request has a ...READ MORE

answered May 27 in Node-js by Neha
• 8,560 points
24 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP