Upload image on the folder with Compression without affecting quality in react js class component
Loading
Upload image on the folder with Compression without affecting quality in react js class component
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineFree to attendVisit the site
Sachin SinghRank #66 · 26.2K reputationPosted Jul 7, 2021, 3:13 AM EDT
Surya K61 reputationPosted Jul 7, 2021, 3:22 AM EDT
Use the below plugin to compress & upload the file to the server
Plugin: npm install browser-image-compression --save
Code:
Refer this link for more info:
https://www.npmjs.com/package/browser-image-compression
selvi jpRank #4,123 · 364 reputationPosted Jul 7, 2021, 5:45 AM EDT