Reference

Image optimization glossary

Image optimization comes with a lot of jargon. This glossary defines the terms you will encounter when compressing product photos, reading PageSpeed Insights, or configuring your store’s image settings — in plain language, with practical context for Shopify and WooCommerce sellers.

AVIF

A modern image format (AV1 Image File Format) that offers even better compression than WebP in many cases. Browser support is growing but is not yet universal — Safari support arrived in 2022 and some older browsers still cannot display AVIF. For store images today, WebP remains the safer choice for broad compatibility.

Alt text

Short text describing an image, stored in the HTML alt attribute. It supports accessibility (screen readers read it aloud) and helps search engines understand the image. Alt text lives in your CMS, not in the image file itself — converting an image to WebP does not change its alt text.

Aspect ratio

The proportional relationship between an image’s width and height, expressed as width:height (e.g., 16:9, 1:1, 4:3). Themes often crop images to a fixed aspect ratio, so standardizing your source images to that ratio before upload prevents unwanted cropping.

Bandwidth

The amount of data transferred when a page loads. Images are usually the largest contributor to bandwidth on a product page. Reducing image file size directly reduces bandwidth, which lowers hosting costs and speeds up page loads — especially for mobile shoppers on limited data plans.

Canvas API

A browser API that lets JavaScript draw and manipulate images on an HTML <canvas> element. The compressor uses it to read your image, resize it, and re-encode it as WebP — all locally, without sending the file to a server.

Chroma subsampling

A compression technique that reduces color resolution more than brightness resolution, exploiting the fact that the human eye is less sensitive to color detail than brightness. Most web encoders default to 4:2:0 subsampling. It rarely needs manual tuning for product photography.

CLS (Cumulative Layout Shift)

A Core Web Vital measuring how much visible content shifts during page load. Missing width and height attributes on images are a leading cause of CLS, because the browser cannot reserve space for the image before it loads. Adding explicit dimensions fixes it.

Color profile

A definition of how color values in an image map to real-world colors. sRGB is the web standard. Images saved in Adobe RGB or ProPhoto RGB may look muted or shifted in browsers, which assume sRGB. Convert to sRGB before uploading to your store.

Compression

Reducing an image’s file size by encoding its data more efficiently. Lossy compression discards some data to achieve smaller files; lossless compression preserves all data exactly. WebP supports both modes.

Core Web Vitals

A set of three metrics Google uses to measure real-world page experience: LCP (loading), CLS (visual stability), and INP (interactivity). They are part of Google’s page experience signals and can influence search rankings as a tiebreaker among otherwise similar pages.

DPI (dots per inch)

A print measurement that is widely misunderstood on the web. DPI is irrelevant to how an image displays on a screen — only pixel dimensions matter. A 72 DPI image and a 300 DPI image with the same pixel dimensions look identical on a website. Do not change DPI to reduce web image size; change pixel dimensions instead.

EXIF metadata

Data stored inside an image file, such as camera model, exposure settings, GPS location, and timestamps. EXIF data adds a small amount to file size and can raise privacy concerns (e.g., location data). Most web tools strip EXIF data during compression, but verify this if it matters to you.

fetchpriority

An HTML attribute that tells the browser how to prioritize fetching a resource. Setting fetchpriority="high" on your hero or main product image (the LCP element) tells the browser to load it first, which can improve LCP.

Generation loss

The progressive quality degradation that occurs when an image is repeatedly re-compressed. Each lossy compression pass discards more data. Always compress from the highest-quality original available, not from an already-compressed copy.

High-DPI (retina) display

A screen with a pixel density higher than standard, such as Apple’s Retina displays. To look sharp on these screens, images need roughly 2x the pixel dimensions of their CSS display size. Many themes request 2x variants via srcset automatically.

INP (Interaction to Next Paint)

A Core Web Vital measuring how quickly a page responds to user input (clicks, taps, key presses). Heavy images competing for decode time during load can delay when the main thread becomes free to respond, indirectly affecting INP.

JPEG (JPG)

A lossy image format that has been the web’s default for photography for decades. It compresses photographic content well but does not support transparency or lossless mode, and it suffers generation loss on each re-save. Still the safest choice for email marketing images.

Lazy loading

A technique that delays loading below-the-fold images until the shopper scrolls near them, reducing initial page weight. Implemented via the loading="lazy" HTML attribute. Do not lazy-load the LCP image — it should load eagerly.

LCP (Largest Contentful Paint)

A Core Web Vital measuring how long the largest visible element takes to render. On a storefront, the LCP element is usually the hero banner or main product image. Google’s “Good” threshold is under 2.5 seconds.

Lossless compression

Compression that preserves every pixel exactly, so the decompressed image is identical to the original. PNG is always lossless; WebP has a lossless mode. Use lossless for logos, icons, and graphics with sharp edges where any quality loss is visible.

Lossy compression

Compression that discards some image data to achieve smaller file sizes, controlled by a quality setting. JPEG and WebP (in lossy mode) use it. Use lossy for photography, where the discarded data is usually not visible to the human eye at sensible quality settings.

Lighthouse

An open-source auditing tool built into Chrome DevTools that analyzes page performance, accessibility, SEO, and best practices. It runs a local lab test and lists specific image optimization opportunities, including unoptimized images and layout-shift elements.

PageSpeed Insights

Google’s free tool (web.dev/measure) that reports Core Web Vitals from both a lab simulation and real Chrome user data. It labels the LCP element directly. Field data reflects the last 28 days; lab data is immediate.

PNG (Portable Network Graphics)

A lossless image format that supports transparency. Ideal for logos, icons, and flat graphics with sharp edges. For photographic content, PNG files are much larger than JPEG or WebP with no visible quality benefit.

Quality setting

A number (usually 1–100) controlling how aggressively a lossy encoder compresses. Higher values preserve more detail but produce larger files; lower values produce smaller files but may show visible artifacts. For WebP product photography, 75–85% is a common range.

Responsive images

Serving different image sizes to different devices based on screen size, so a phone does not download a desktop-sized image. Implemented via the srcset and sizes HTML attributes. Shopify and WooCommerce generate the variants automatically; your theme requests them.

Resolution

The pixel dimensions of an image (e.g., 2048×2048px). Higher resolution means more detail but larger file size. Match resolution to the largest size the image will display at, including a buffer for high-DPI screens.

srcset

An HTML attribute on <img> tags that lists multiple image sources at different resolutions, letting the browser choose the best one for the current device. It is the backbone of responsive images. Inspecting srcset on your live site reveals which sizes your theme actually requests.

sRGB

The standard color space for the web. Browsers assume images are sRGB unless told otherwise. Images in other color spaces (Adobe RGB, ProPhoto RGB) may display with shifted or muted colors. Convert to sRGB before uploading.

Thumbnail

A small version of an image, used in grids, galleries, and navigation. Thumbnails can be compressed more aggressively than full-size images because they display at small sizes where quality loss is invisible. A quality of 70–75% is usually sufficient.

WebP

A modern image format developed by Google that supports both lossy and lossless compression, transparency, and animation in a single format. It generally produces smaller files than JPEG (lossy) and PNG (lossless) at comparable visual quality. Supported by all modern browsers since 2020.

WebP Express

A popular free WordPress plugin that converts existing media library images to WebP and serves them to supported browsers. An alternative to manually converting and re-uploading images, useful for large existing catalogs.

Related guides