Image compression is one of those small features that can make a website feel much faster. If users upload large photos from a phone, the original image can easily be 3MB, 5MB or even 10MB. For many apps, blogs, forms and dashboards, that is bigger than needed. The good news is that basic image compression can be done directly in the browser using JavaScript, canvas and canvas.toBlob() . In this article, we will look at a simple browser-based image compression workflow. Why compress images in th