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, 2022 in Node-js by Vaani
• 7,020 points
2,919 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, 2022 by Neha
• 8,940 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, 2022 in Node-js by Vaani
• 7,020 points
193 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,840 points
12,168 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,840 points
3,045 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,840 points
18,742 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
1,269 views
0 votes
1 answer
+1 vote
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,450 points
866 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, 2022 in Node-js by Neha
• 8,940 points
202 views
0 votes
1 answer

How to host MEAN stack application with Angular and nodejs on windows IIS

It's fine that you're using Angular. Be ...READ MORE

answered May 27, 2022 in Node-js by Neha
• 8,940 points
546 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP