3 ms·
Any time it's a photographic image (rather than a drawing, diagram or rasterised vector image).
by barrkel 10y ago
Any time it's a photographic image (rather than a drawing, diagram or rasterised vector image).
- jerrycruncher 10y agoThis. Here's a quick guide: JPG - Use for photographic images only. GIF/PNG-8 - Use for line-art, logos, etc. PNG-24 - This is a a lossless format/TIFF replacement and generally shouldn't be used for production sites.
- tedmiston 10y ago> PNG-24 - ... generally shouldn't be used for production sites. But it is sometimes of course, particularly when the designer does not want the PNG restricted to 256 colors. For example, suppose that your logo is a single lowercase letter with an overlaid multicolor gradient rainbow, the banding in the transitions becomes super pronounced in PNG-8. Beyond that, SVG can replace a lot of what PNG has been used for on the web for the past couple decades.