How image compression works
Two photographs from the same camera can have identical dimensions and very different file sizes. A plain wall gives an encoder plenty of repetition. A forest canopy gives it thousands of small changes to describe.
Follow one patch of sky
A lossless encoder can store recurring patterns efficiently and reconstruct each encoded pixel value. A lossy encoder has another option. It can represent subtle changes in the sky more coarsely. At a moderate setting the difference can be difficult to see. Push the setting too far and the smooth sky starts to break into colored bands.
Compare at the intended size
Make two exports from the same source at the same dimensions. View both at the size people will see on the page, then zoom in on hair, lettering and high-contrast edges. Record the smaller file’s size. A large byte saving is often worth a change visible only under magnification, while a small saving rarely justifies damage to essential text.
Treat quality as an encoder control
A quality of 80 is neither a promised percentage reduction nor a universal measure of quality. Browsers and formats use different encoders. If the smallest acceptable version still exceeds a limit, reduce the pixel dimensions if the destination permits it, then encode a fresh copy from the original.