From Dev.to
How to Compress Images in the Browser Using JavaScript and the Canvas API
Large images can increase page loading times, consume unnecessary bandwidth and negatively affect the user experience. But what if users could resize and compress images directly in their browsers wit...
