Bug 166580 - Images show the wrong colors
Summary: Images show the wrong colors
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
24.8.7.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-14 14:41 UTC by Alberto Salvia Novella
Modified: 2025-05-15 12:20 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Test.png (18.55 KB, image/png)
2025-05-14 14:42 UTC, Alberto Salvia Novella
Details
Test.odp (52.86 KB, application/vnd.oasis.opendocument.presentation)
2025-05-14 14:42 UTC, Alberto Salvia Novella
Details
Screenshot.png (473.15 KB, image/png)
2025-05-14 14:43 UTC, Alberto Salvia Novella
Details
screenshot (161.80 KB, image/png)
2025-05-15 04:49 UTC, BogdanB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Salvia Novella 2025-05-14 14:41:42 UTC
Description:
Images are displayed without taking into account the color space in their metadata.

Hence the colors are wrong.

Steps to Reproduce:
1. Insert an image into a document. Preferably one with their color space tagged in its metadata, as the attached one.

2. Open the same image on a color managed application, like Firefox with "gfx.color_management.mode = 1" (aka always manage color).

Actual Results:
Colors are different

Expected Results:
Colors to be the same


Reproducible: Always


User Profile Reset: Yes

Additional Info:
If there is no color space tagged on the metadata, the default shall be to assume sRGB.
Comment 1 Alberto Salvia Novella 2025-05-14 14:42:18 UTC
Created attachment 200806 [details]
Test.png
Comment 2 Alberto Salvia Novella 2025-05-14 14:42:45 UTC
Created attachment 200807 [details]
Test.odp
Comment 3 Alberto Salvia Novella 2025-05-14 14:43:05 UTC
Created attachment 200808 [details]
Screenshot.png
Comment 4 BogdanB 2025-05-15 04:49:37 UTC
Created attachment 200819 [details]
screenshot

I see the same color when opening the PNG and the document containing the PNG. See my screenshot.
Comment 5 Alberto Salvia Novella 2025-05-15 12:20:21 UTC
It seems that this happens when the screen is color calibrated.

I will bisect this bug first.