Choosing image file formats for photos, graphics and storage

JPEG and PNG plates compare photo delivery, raster graphics, compression, alpha support and component bit depth.

Choosing image file formats starts with what happens to the picture next. A student submitting a photograph needs something a teacher can open; a print shop needs enough information for editing; a website needs quick downloads. W3C’s PNG specification (2025) allows truecolor samples of 8 or 16 bits, while ordinary JPEG delivery uses 8 bits per color component. Those numbers describe different kinds of files, not a ranking of photographic quality. The best choice keeps the information you need without making the next task harder.

What lossy and lossless compression actually save

A photograph of a knitted scarf and a screenshot of a timetable give compression software different problems. The scarf has small variations everywhere. The timetable has flat areas and hard edges that make even modest damage easy to spot. Don’t judge a format from one unusually easy picture.

Lossless compression recreates the stored pixel values exactly when you decode the file. PNG uses this approach. Lossy compression discards some information to save space, as an ordinary JPEG export does. The result might look unchanged at the intended viewing size, but it isn’t mathematically identical to the input.

I3A’s published work on digital imaging connects file format design with color information and metadata, which helps explain why compression is only part of this decision. A small file that loses its color profile or description can be awkward to use even if the pixels look acceptable.

The JPEG committee dates JPEG 1, the ISO/IEC 10918 standard, to 1992. Its description includes lossless coding as well as the familiar lossy mode. So the table below describes common photographic JPEG files, not every option in the whole standard. That’s the distinction you’ll need at an export dialog.

Opening a JPEG doesn’t damage it. Editing and saving it through another lossy encode can. Keep a working master and export delivery copies from that master rather than passing one JPEG through several rounds of editing. Converting a damaged JPEG to PNG won’t bring the discarded detail back; it only prevents further compression loss in that saved pixel image.

Compare image file formats by the job they need to do

An extension tells you the family, but sometimes leaves the important settings unstated. TIFF is a container with several compression options. RAW is a broad label for camera capture formats, not one interchangeable file type. You’ll need the recipient’s requirements as well as the extension.

The Digital Imaging Interest Group page describes format work alongside metadata, color measurement and image transfer. Its DIG2000 account makes the distinction particularly clear: the proposal covered the container, metadata and color space specification for JPEG 2000. JPEG 2000 isn’t the same file type as an ordinary .jpg.

For everyday choices, this map of image file formats covers the usual configurations. Bit depth here means bits per color component unless the row says palette or sensor sample.

FormatCompression in common useTransparencyTypical bit depthGood starting use
JPEG (.jpg, .jpeg)LossyNo alpha channel8 per componentFinished photos, email, general print delivery
PNG (.png)LosslessAlpha, including partial transparency8 or 16 for truecolor; indexed options also existScreenshots, raster graphics, transparent edges
GIF (.gif)Lossless compression of palette indicesOne transparent palette entry, no partial alphaUp to 8-bit palette, 256 entriesSimple legacy animations and limited-color graphics
TIFF (.tif, .tiff)Uncompressed or lossless; lossy options also existAlpha supported, software-dependentCommonly 8 or 16; other options existEdited masters, scans, agreed print workflows
WebP (.webp)Lossy or losslessAlpha in either mode8 per componentWebsite photos, graphics and animations
HEIC (.heic)Usually lossy HEVC; lossless coding is possibleSupported by the format, not every workflowCommonly 8 or 10; profile-dependentEfficient phone capture and compatible photo libraries
RAW (various extensions)Uncompressed, lossless or lossy, depending on camera and modeNot normally a finished-image alpha channelOften 12 or 14 per sensor sample; variesCapture originals for later processing

GIF’s compression preserves its palette indices, but creating that palette from a full-color photograph may discard colors first. Don’t confuse lossless compression with a lossless conversion from any source. Likewise, a TIFF saved with JPEG compression isn’t a lossless master merely because its name ends in .tif.

A GIF palette advisory shows 256 entries and binary transparency beside PNG samples with partially transparent edges.
GIF uses a transparent palette entry; PNG can preserve partially transparent edges.

Transparency and bit depth solve different problems

A cutout product photograph often has a soft shadow that must sit over different page colors. JPEG can’t store an alpha channel, so an export must flatten that shadow onto a chosen background. It might look fine on white and show a pale rectangle on blue. Check the actual background before approving it.

Alpha describes opacity separately from color. GIF can mark a palette entry transparent, but doesn’t provide a partially transparent alpha channel. PNG and WebP can store intermediate opacity values, which suit soft shadows and antialiased edges. W3C’s PNG Third Edition (2025) specifies 8-bit or 16-bit alpha samples for truecolor images with alpha. Don’t assume that every PNG has transparency; the file must actually contain it.

Bit depth controls the available numerical steps in each component. For unsigned integer samples, the working is 2^8 = 256 levels and 2^16 = 65 536 levels. Extra steps help during large tonal adjustments, particularly in smooth skies or studio backgrounds. They don’t add pixels or rescue poor focus. And RAW’s sensor samples aren’t directly comparable to a finished RGB image’s components.

There is a storage cost before compression. Say you have a 6 000 × 4 000 RGB image with no alpha channel. Its pixel payload is 6 000 × 4 000 × 3 × 1 = 72 000 000 bytes, or 72 MB, at 8 bits per component; using 2 bytes per component gives 6 000 × 4 000 × 3 × 2 = 144 000 000 bytes, or 144 MB, at 16 bits. Here MB means 1 000 000 bytes. Headers, profiles and compression change the actual file size, so these aren’t predictions of two TIFF exports.

Choose delivery copies for the recipient

Say a small portrait studio sends previews that clients will inspect on a phone while waiting to pick up a child. An 8-bit JPEG in sRGB is a sensible starting point: it’s widely readable and doesn’t require the client to understand a capture format. Keep the dimensions appropriate to the task and inspect faces, hair and background gradients at the intended size. A quality slider value isn’t a universal standard across applications.

For a screenshot containing small type, start with PNG or lossless WebP. Lossy compression can put halos around letters and colored fringes along sharp edges. The RFC Editor’s WebP specification, RFC 9649 (2024), defines the lossless pixel representation with 8 bits each for alpha, red, green and blue. Lossless WebP therefore won’t retain a 16-bit PNG’s original component precision through conversion.

WebP is a practical website delivery choice when your publishing system accepts it. Test the exported file rather than assuming it always beats JPEG: picture content, dimensions and encoder settings affect both quality and size. Keep a separate source for future edits. A web-sized copy shouldn’t become your only record of a photograph.

HEIC means HEVC-coded images in a HEIF container. It suits phone libraries, but support for the container, bit depth and extra image items varies between applications. Don’t rename .heic to .jpg; that changes the label, not the encoding. If a submission portal asks for JPEG, make a JPEG copy and open that copy before uploading it.

RAW belongs earlier in the workflow. It’s useful when you expect substantial exposure or white balance adjustments, but it needs compatible processing software. A client who just wants a finished picture shouldn’t have to choose a RAW converter. The RAW versus JPEG guide explains that capture decision in more detail.

A delivery sheet pairs phone previews with JPEG, fine-text graphics with PNG or lossless WebP, and HEIC with conversion.
The same RGB dimensions need twice the uncompressed pixel payload at 16 bits per component.

Keep originals and readable masters for the long term

A folder full of small delivery JPEGs is easy to browse, but it may leave little room for a better edit or a larger print later. At the other extreme, a folder containing only proprietary RAW files leaves future access dependent on compatible software. You don’t have to choose just one role for every file.

Keep the capture original, whether it’s RAW, HEIC or JPEG. For important edited photographs and scans, also consider a full-resolution TIFF master with an embedded color profile and documented uncompressed or lossless settings. The Library of Congress TIFF description (2024) identifies TIFF 6.0 as the version published in 1992, with 8-bit grayscale and 24-bit RGB common in practice. It also notes that TIFF wraps different encodings and that extended tags may not be recognized by every reader. Familiarity doesn’t remove the need to test your files.

For long-term preservation, the useful question about image file formats is whether another person can interpret the picture and its context. Save creator names, dates, captions and rights information where the workflow supports them. Keep sidecar files with their matching originals, and record the color space. Don’t rely on a folder name to explain an entire commission.

The Flashpix description offers a useful historical example: its format stores different resolutions in 64 × 64 tiles and defines descriptive metadata. That illustrates how a format can carry more than a single flattened view. If you hold older or unusual files, check that your software reads the whole object, not just its preview.

No format choice substitutes for separate, checked copies. Use the photo backup guide to plan that part of the workflow.

Test one export before changing the whole folder

Before you batch-convert a library or write a studio handoff rule, select one demanding photograph and one graphic with fine text. Export them with the intended dimensions, profile and compression settings. Open the results in the receiving application, then inspect a dark gradient, a sharp edge and any transparent area. It’s a short test that can prevent a long round of replacements.

Write the approved settings down in plain language: for example, “JPEG, sRGB, full requested dimensions, exported from the edited master.” For a preservation master, include bit depth and the TIFF compression choice. Ask the print provider what it accepts rather than assuming that a larger file is automatically better.

If an older format raises a standards question, email i3ainfo@i3a.org with the extension, the software used and what happened when you opened it. Keep the original untouched while you test a copy. That leaves you a clear starting point if the conversion turns out to have dropped something you needed.

Questions about imaging standards? Write to i3ainfo@i3a.org or call +1 (914) 285-4933, or read about I3A membership.