The sign-up form for a course accepts attachments of only a few MB, and a single phone photo is already over the limit. The email with photos of the damage to your car won’t go through to your insurer. Compressing the images gets you under the limit without taking the pictures again.
On a website or online shop, heavy images slow pages down, especially on phones: making product photos lighter before you upload them makes the site faster. And if your phone is full, compressing the photos you only want to keep frees up space.
The quality setting decides how hard the file is compressed: lower it and the size drops, but past a certain point blotches and smudges appear, especially in skies and flat areas. Start from the suggested value and compare the result. The maximum side also reduces the dimensions: a phone photo is often far bigger than the screen it will be viewed on, and at 1920 pixels it still fills a typical monitor while weighing much less.
As for the format, JPG suits photographs and opens on any device. WebP usually weighs less for the same look and is read by modern browsers. Some browsers, such as Safari, can’t create it, though: in that case the tool tells you.
If you keep a PNG as PNG, the tool compresses it by reducing the palette to 256 colors. This works well with logos, icons, diagrams and screenshots, because these images have few colors and the difference usually doesn’t show. In a photograph saved as PNG, however, smooth gradients can turn into visible steps: for photos, choose JPG or WebP instead.
If a compressed version would end up heavier than the original, as happens with files that are already optimized, the tool keeps the original. At the end you see the size before and after, and how much you saved.