Guide

Why an image changes colour after its profile is removed

Removing the Display P3 profile from a beach JPEG saved 554 bytes, or 0.181% of the file, and made its blue sky and orange sunset less saturated in Chrome. Keeping the profile, or converting a copy to sRGB before removing it, preserved the original colours in Chrome.

Last updated:

Bitinz team · How we write and check our content

One photograph, three exports

Supported iPhones can capture photographs in the P3 colour space, so a P3 profile is an ordinary thing for an upload to carry. Our test photograph was a 1400 × 933 beach JPEG from Pexels. We ran it on 2026-11-16 on macOS 27.0.1, with ImageMagick 7.1.1-47, ExifTool 12.57 and Google Chrome 157.0.8103.78.

The source JPEG declared sRGB in its EXIF data and had no embedded ICC profile. We assigned the system sRGB profile in ImageMagick, converted the samples to Display P3 and saved a tagged PNG. Both JPEG exports started from that same uncompressed image.

We made a JPEG with its P3 profile, a copy with only that ICC profile removed, and a separately converted sRGB JPEG with its profile removed. Both JPEG encodes used quality 90 and 4:4:4 sampling. ExifTool removed the profile from the copy, so that comparison involved no extra JPEG save.

Photo exportFile bytesEmbedded ICC profile
P3 profile kept306,323Display P3
P3 profile removed305,769None
Converted to sRGB, then untagged315,109None

The P3 profile itself was 536 bytes; with its marker wrapper it took 554 bytes of the JPEG, 0.181% of this photograph. The converted export was larger than either P3 file because conversion changed the samples the encoder received, so its size says nothing about the profile.

Look at the sky and sunset

Chrome loaded all three files. We drew the same 180 × 120 region of each into an sRGB canvas and enlarged it two times without smoothing.

P3 profile kept

Sky detail from the JPEG that kept its Display P3 profile.

Profile removed

The same sky detail after the profile was removed, with a duller blue.

Converted to sRGB first

The same sky detail from the copy converted to sRGB before the profile was removed.
Compare the blue above the cloud. The middle crop, whose P3 values lost their profile, is less saturated; the other two look the same.

P3 profile kept

Sunset detail from the JPEG that kept its Display P3 profile.

Profile removed

The same sunset detail after the profile was removed, with a paler orange.

Converted to sRGB first

The same sunset detail from the copy converted to sRGB first.
Compare the orange around the sun and the dark water below it. Again only the middle crop changed.

A chart with no JPEG encoding differences

To separate the colour-space step from JPEG encoding, we also made a 360 × 240 PNG with six flat colours. Two versions had identical RGB samples and the same image data; one carried a Display P3 profile and the other no colour metadata. A third held samples converted to sRGB, written without a profile.

The tagged PNG was 1,574 bytes. Removing its profile left 1,221 bytes, and the converted, untagged version was 1,226 bytes. Here the 353-byte profile chunk was 22.4% of a very small file, against 0.181% of the photograph.

We read the centre of every block from a canvas created with colorSpace: 'srgb'. All six readings matched between the tagged and converted versions. Five changed when the profile was removed without conversion; neutral grey did not.

Chart blockProfile kept, read as sRGBProfile removedConverted first
Red217, 56, 51200, 70, 60217, 56, 51
Green0, 183, 9070, 180, 1000, 183, 90
Orange234, 124, 36220, 130, 60234, 124, 36
Purple162, 64, 186150, 70, 180162, 64, 186
Blue-green0, 173, 19370, 170, 1900, 173, 193
Grey128, 128, 128128, 128, 128128, 128, 128

The PNG writer added no gamma, chromaticity or other colour chunks, so removing the ICC profile left the chart with no colour information at all.

Why the interpretation changes

Display P3 and sRGB define different RGB primaries, so the same three numbers can mean different colours. CSS Color 4 requires a browser to interpret a tagged image with its colour information and to treat an untagged image as sRGB.

Deleting the only tag from unconverted P3 samples changes which interpretation applies. Converting to sRGB first changes the sample values while the source profile is still there. Assigning an sRGB profile without conversion does not perform that calculation.

ImageMagick's -profile option does both jobs: when the file already has a profile, it converts to the one you name; when it has none, it only assigns it. Check that the source profile is correct before running it on a file whose history you do not know.

Check whether your image has a profile

We ran these ExifTool arguments on the tagged and exported photographs:

exiftool -ProfileDescription -ProfileCMMType photo.jpg

The tagged file returned Display P3; the two stripped exports returned no profile description. ImageMagick gives the same answer:

magick identify -format '%f: %[icc:description]\n' photo.jpg

In Preview on macOS, click Inspector in the toolbar and read the ColorSync Profile line. Check the copy downloaded from the website as well as the original; the profile can differ even when the dimensions do not.

Preview Inspector

The Preview Inspector panel showing ColorSync Profile: Display P3.
The Inspector lists Display P3 for the 306,323-byte JPEG.

Export while the input profile is still available

For a copy that needs sRGB, convert before stripping. These are the conversion and removal commands from our photo test:

magick p3-source.png -intent Relative \
  -profile '/System/Library/ColorSync/Profiles/sRGB Profile.icc' \
  -sampling-factor 4:4:4 -quality 90 srgb-photo.jpg
exiftool -overwrite_original -ICC_Profile= srgb-photo.jpg

Keep the correctly tagged source and write to a separate file. Reopen the new file, check its profile and compare it in the browser you care about. A photo from a phone is not necessarily P3, so check rather than guess.

When Bitinz compresses a JPEG, or converts one to WebP, it keeps the embedded ICC profile: our P3 test photo still reported Display P3 after both. Orientation is the other piece of metadata that changes how a photo looks after upload; see the orientation test. To choose the format itself, read JPG vs PNG vs WebP.

Compress imagesMake JPG, PNG and WebP files smaller in their own format, in batches and for free.Compress images

What we did not test

We converted an sRGB photograph to P3 rather than using a native wide-gamut capture. The JPEG exports were compared by eye; exact colour readings come from the PNG chart. Chrome was forced to sRGB, so wide-gamut displays, HDR, other browsers and upload services were outside this test, as were PNG editors that keep other colour chunks.

FAQ

Should every website image keep its ICC profile?
If an image is already sRGB, removing only its ICC profile leaves the browser's interpretation unchanged. For P3 or another colour space, keep the correct profile or convert the samples to sRGB before removing it. Recompressing during an export is a separate possible cause of visible changes.
Can I fix a stripped image by assigning sRGB?
Only if the samples really are sRGB. If a P3 original is available, go back to that correctly tagged file and convert a copy. The RGB values alone may not reveal the missing source space.
Why did my site's thumbnail change colour?
Download the thumbnail and compare its profile with the original using ExifTool or ImageMagick. Then look at the editor or thumbnail step that produced it. Do not infer its behaviour from another site's settings or from the file name.

Tools in this guide

Sources

  1. Bitinz: Colour profile test: files, measurements and commands (2026-11-16)
  2. Apple: iOS Device Compatibility Reference: Cameras (wide-gamut colour capture)
  3. W3C: CSS Color Module Level 4: tagged and untagged images
  4. ImageMagick: Command-line options: -profile
  5. Chrome for Developers: Canvas colour spaces
  6. ExifTool: ICC_Profile tags