🍋
Menu
Best Practice Beginner 1 min read 295 words

Color Profile Management for Web Images

Handle ICC color profiles correctly when converting and publishing images to avoid color shifts across devices.

Color Profile Management

Images captured by cameras and created in design tools contain embedded ICC color profiles that define how colors should be displayed. Mismanaging these profiles causes visible color shifts between devices and applications.

sRGB as the Web Standard

sRGB is the default color space for web content. Browsers assume sRGB unless an image has an embedded profile indicating otherwise. Converting all web images to sRGB ensures consistent appearance across devices. Display P3 is emerging for HDR content on Apple devices, but sRGB remains the safe default.

When Profiles Cause Problems

A photo shot in Adobe RGB will appear desaturated in browsers that don't color-manage (the colors are interpreted as sRGB when they're actually Adobe RGB values). A CMYK image from print production will render with completely wrong colors in web browsers. Design files in ProPhoto RGB have a wider gamut than any monitor can display.

Conversion Best Practices

Always convert to sRGB using perceptual rendering intent, which preserves the visual relationships between colors even if some are out-of-gamut. Assign the correct source profile before converting — converting a mislabeled image produces wrong colors. After conversion, embed the sRGB profile in the output file.

Stripping vs Embedding

For web optimization, you can strip ICC profiles to save 3-10KB per image. This works because browsers default to sRGB. However, for photographs where color accuracy matters (product photos, food photography, artwork), embed the sRGB profile explicitly to guarantee correct rendering in all color-managed applications.

Wide Gamut Displays

Modern displays (Apple P3, DCI-P3) can show colors outside the sRGB gamut. For these displays, you can serve Display P3 images that take advantage of the wider color range. Use the CSS color-gamut media query to detect P3 support and serve appropriate images.

संबंधित टूल्स

संबंधित फ़ॉर्मेट

संबंधित गाइड