A simple and free tool for this is TinyPNG.
What Does TinyPNG Offer?
TinyPNG is an online image compression service. Images are dragged and dropped onto the website, processed automatically, and then downloaded as smaller files. Despite its name, the service now supports JPEG, WebP, AVIF, and JPEG XL in addition to PNG. It also offers conversion between image formats. Further offerings include a website image analysis tool, a developer API for automated workflows, and an image CDN for delivering images.
When compressing, the goal is to reduce file size as much as possible while keeping the visible image quality largely intact. How much you save depends on the subject, the format, and any prior compression, so a fixed savings percentage can't be promised. It's especially worth checking the result for fine text, gradients, or detail-rich images.
Why Does Image Optimization Matter for TYPO3 Editors?
An image file straight from a camera or smartphone often contains far more pixels than needed for its display on a website. If it's uploaded and delivered unchanged, visitors have to transfer unnecessarily large amounts of data. Especially on the go or on slow connections, this can noticeably delay page loading.
Optimized images help on several levels: