Colour profiles and rescaling
A colour profile tells a viewer what the numbers in a photo mean. Resizing makes new numbers — and whether their meaning travels with them depends on the path the file takes.
What a profile is for
A pixel stores three numbers. Whether (255, 0, 0) is a modest red or the deepest red a screen can show depends on the colour space those numbers were written in. An embedded ICC profile names that space. Phones increasingly shoot in Display P3, cameras offer Adobe RGB, and most of the web assumes sRGB. A viewer that honours the profile shows the colours as captured; one that drops it shows the same numbers as sRGB, which for a P3 photo means duller.
A browser’s image encoder writes a new file from pixels. It does not know or carry the source’s profile, and by default it converts the pixels to sRGB when it decodes them. That is where profiles usually get lost on the web.
