Photographs and graphics want different formats
Images with smooth colour gradients, like photographs, compress well with lossy methods. Logos, text and screenshots have hard edges, and lossy compression makes those edges messy. What the image contains is the first thing that decides the format. When one image mixes a photo with text, favour keeping the text crisp: save as PNG, or use a lossy format at a high quality setting.
- Photographs: JPEG or WebP
- Logos, icons, screenshots: PNG
- Shapes and text that must scale cleanly: SVG
- Short moving images: WebP or video rather than GIF