Sub topic 4
Choose a Format: JPEG, PNG, GIF, SVG, or WebP
Assume you know basic Photoshop navigation, the difference between pixels and print units, and the general idea of raster images and transparency. This chapter focuses on choosing the file format after you decide the image’s destination and pixel dimensions.
A file format controls how Photoshop stores image data. It affects image quality, transparency, animation, browser support, and file size. Choose based on the image content and how the file will be used.
Compare the main formats
| Format | Best for | Transparency | Animation | Main trade-off |
|---|---|---|---|---|
| JPEG | Photos and complex artwork | No | No | Small files, but lossy compression |
| PNG | Logos, screenshots, and sharp graphics | Yes | Limited support | Larger files, especially for photos |
| GIF | Simple animations and very limited-color graphics | Yes, with limitations | Yes | Only 256 colors |
| SVG | Logos, icons, and other vector artwork | Yes | Possible with web code | Not suitable for ordinary pixel photos |
| WebP | Modern web photos and graphics | Yes | Yes | Confirm the destination supports it |
JPEG
JPEG is a raster format that uses lossy compression. Lossy means that some image information is removed to reduce file size. JPEG works well for photographs, gradients, and artwork with many colors.
In Photoshop, increase the quality setting when details or text must remain clear. Avoid repeatedly opening and saving a JPEG. Each save can add more compression damage. JPEG cannot store transparent areas, so Photoshop fills transparency with a background color during export.
PNG
PNG uses lossless compression. Lossless means that the exported pixels remain exact, although the file may be larger. Use PNG for interface screenshots, flat illustrations, logos, and images that need transparent backgrounds.
PNG-8 supports a limited color palette and can be smaller for simple artwork. PNG-24 or PNG-32 supports more colors and, when available, varying levels of transparency called alpha transparency.
GIF
GIF supports animation and transparency, but it stores no more than 256 colors in each frame. Use it for small, simple animations or graphics with few colors. Do not choose GIF for photographs, smooth gradients, or detailed illustrations. Banding and visible color changes are common.
SVG
SVG is a vector format. It stores shapes, paths, and other drawing instructions instead of fixed pixels. A browser can scale an SVG up or down without making its edges blurry.
Use SVG for logos and icons created from shape layers or paths. A Photoshop document containing ordinary pixel layers is not automatically a good SVG. Complex effects, filters, and raster content may be simplified, omitted, or embedded.
WebP
WebP supports lossy and lossless compression, transparency, and animation. It often produces smaller files than JPEG or PNG at a similar visual quality. It is a strong choice for modern websites, but check the publishing system, email client, or social platform before using it.
Use the destination to decide
Use this sequence:
- Is the image a photo or a detailed continuous-tone design? Start with JPEG or WebP.
- Does it need transparent pixels or extremely sharp edges? Start with PNG or WebP.
- Is it a simple animation? Consider GIF or animated WebP.
- Is it logo or icon artwork made from vectors? Consider SVG.
- Does the destination restrict formats? Follow that requirement even if another format is technically better.
Exercise
You need a transparent logo with sharp edges for a modern website. Which format is the best starting point, and what should you verify?
Show answer
Start with SVG if the logo is vector artwork. Otherwise use PNG or transparent WebP. Verify that the website supports the chosen format and that the edges and transparency look correct.