Pillow and sharp handle Display P3 photos differently by default, shifting colors
Testing a Display P3 image through Pillow 11.3 and sharp 0.34.5 with default settings produced JPEGs that were wrong in opposite ways. Pillow's output looked washed out because it wrote the P3 values unchanged without a profile, which browsers read as sRGB. sharp converted to sRGB first, keeping everyday colors accurate but clipping the most saturated ones. Neither library is buggy; each simply defaults to a different target that pipelines inherit unless set deliberately. For images viewed in color-managed contexts, the author recommends keeping the P3 profile, which adds only about 554 bytes and stays close to the original colors.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in