Bug 116846 - Colour profile issues with edit view and PDF export compared to Preview
Summary: Colour profile issues with edit view and PDF export compared to Preview
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2018-04-06 11:08 UTC by tariq.rashid50
Modified: 2024-09-04 12:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
source png image (75.08 KB, image/png)
2018-04-06 11:08 UTC, tariq.rashid50
Details
source docx (87.10 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-04-06 11:09 UTC, tariq.rashid50
Details
pdf from ms-word (145.21 KB, application/pdf)
2018-04-06 11:09 UTC, tariq.rashid50
Details
pdf from libreoffice (113.43 KB, application/pdf)
2018-04-06 11:09 UTC, tariq.rashid50
Details
screenshot comparing editor views (242.59 KB, image/png)
2018-04-06 11:10 UTC, tariq.rashid50
Details
screenshot comparing pdf views (158.96 KB, image/png)
2018-04-06 11:10 UTC, tariq.rashid50
Details
Screen shot comparison Word export, LOmaster, LO603 (458.93 KB, image/png)
2018-04-06 11:32 UTC, Alex Thurgood
Details
screenshot editors LO-61-dev (306.87 KB, image/png)
2018-04-06 17:55 UTC, tariq.rashid50
Details
comparing PDF exports from LO-61-dev (113.46 KB, application/pdf)
2018-04-06 17:56 UTC, tariq.rashid50
Details
screen print pdf's from three versions and docx in Libre - on Ubuntu (153.93 KB, image/png)
2018-04-10 10:29 UTC, Cor Nouws
Details
comparing PDF export colours from MSWord, LO6, LO61 daily 31/05/2018 (501.84 KB, image/png)
2018-05-31 20:16 UTC, tariq.rashid50
Details
comparing PDF export colours from MSWord, LO6, LO61 daily 31/05/2018 (501.84 KB, image/png)
2018-05-31 20:18 UTC, tariq.rashid50
Details
Screenshot LO vs print PDF vs Preview png vs Pages (533.41 KB, image/png)
2018-06-14 20:38 UTC, eisa01
Details
LibreOffice source (12.38 KB, application/pdf)
2024-09-04 11:54 UTC, tariq.rashid50
Details
MSWord source (12.03 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-09-04 11:54 UTC, tariq.rashid50
Details
LO exported PDF (3.70 KB, application/pdf)
2024-09-04 11:55 UTC, tariq.rashid50
Details
LO source (9.48 KB, application/vnd.oasis.opendocument.text)
2024-09-04 11:55 UTC, tariq.rashid50
Details
screenshot showing all 4 (883.52 KB, image/png)
2024-09-04 11:56 UTC, tariq.rashid50
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tariq.rashid50 2018-04-06 11:08:18 UTC
Description:
Libreoffice 6.0.3.2 for macOS seems to have 2 issues with colour profiles:

1. when viewing an inserted PNG image, the view shows paler colours than the original PNG

2. when exporting PDFs (lossless images, pdf/a), the image in the PDF shows overly saturated colours compared to the original

MS Word 16.11.1 for macOS shows consistent colours in the editor view as well as the PDF export. 

See below for steps to reproduce including test images, docs and pdfs.

Steps to Reproduce:
1. Take source docx which has inserted images, or create one as follows:
 a. create new doc in ms-word, insert test png p5_we_hsb_final.png, don't copy/pase
 b. save docx - this is the source doc
2. open docx in ms-word, save as PDF (print not web for higher fidelity options)
3. open docx in libreoffice, save as PDF (lossless images, pdf/a)


Actual Results:  
4. observe the editor views in ms-word and libreoffice - note different colours
5. observe PDF (eg in preview) -  note difference in colours
6. observe original PNG image - note colours are the same as the ms-word editor view and PDF export - but different to the Libreoffice editor view and PDF export


Expected Results:
colours should be consistent across editor view and PDF export and the same as the original image


Reproducible: Always


User Profile Reset: No



Additional Info:
see attached files to help reproduce the error

attached are:

1. source PNG image
2. source docx with inserted PNG image
3. PDF from ms-word
4. PDF from libreoffice
5. screenshot comparing editor views
6. screenshot comparing PDF views

All software is latest (MSoffice 2016, MacOS, LibreOffice).


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15
Comment 1 tariq.rashid50 2018-04-06 11:08:50 UTC
Created attachment 141160 [details]
source png image
Comment 2 tariq.rashid50 2018-04-06 11:09:17 UTC
Created attachment 141161 [details]
source docx
Comment 3 tariq.rashid50 2018-04-06 11:09:39 UTC
Created attachment 141162 [details]
pdf from ms-word
Comment 4 tariq.rashid50 2018-04-06 11:09:59 UTC
Created attachment 141163 [details]
pdf from libreoffice
Comment 5 tariq.rashid50 2018-04-06 11:10:24 UTC
Created attachment 141164 [details]
screenshot comparing editor views
Comment 6 tariq.rashid50 2018-04-06 11:10:49 UTC
Created attachment 141165 [details]
screenshot comparing pdf views
Comment 7 tariq.rashid50 2018-04-06 11:12:33 UTC
first recommended to put on ask.libreoffice then here on bugzilla by libreoffice

https://twitter.com/libreoffice/status/982181420759007232
Comment 8 tariq.rashid50 2018-04-06 11:20:27 UTC
also tested with latest fedora linux (27) with latest libreoffice 6 form libreoffice.org using flatpak (because fedora repos won't have lo6)

pdf exports show same inaccurate colours
Comment 9 Alex Thurgood 2018-04-06 11:32:07 UTC
Testing with

Version: 6.1.0.0.alpha0+
Build ID: 7945d19d11e4064e91633ec0cff669b8412b95c4
CPU threads: 4; OS: Mac OS X 10.13.4; UI render: default; 
Locale: fr-FR (fr_FR.UTF-8); Calc: group

doesn't show any noticeable difference between the 2 exports for me, following the instructions provided.

However, I did the same test with LO603 and could see a difference.

The enclosed screenshot shows the comparison between the original export from Word 16.11.1, my LO 6.1 alpha master build, and LO603
Comment 10 Alex Thurgood 2018-04-06 11:32:49 UTC
Created attachment 141167 [details]
Screen shot comparison Word export, LOmaster, LO603
Comment 11 Alex Thurgood 2018-04-06 11:34:31 UTC
Tariq: can you try with a daily build to see if you still reproduce the issue ?

If not, then it would appear that the problem has been fixed in master.
Comment 12 tariq.rashid50 2018-04-06 17:55:11 UTC
Sadly it didn't work.

I tried LibreOffice dev version 

Version: 6.1.0.0.alpha0+
Build ID: a488c7ad2763b944713997911c1ddb0315d8c93f
CPU threads: 8; OS: Mac OS X 10.13.4; UI render: default; 

I've uploaded the editor views and the resultant PDF. So to summarise:

 * libreoffice 6.1.0.0.alpha0+ editor view shows the incorrect colours
 * libreoffice 6.1.0.0.alpha0+ export PDF shows the incorrect colours
Comment 13 tariq.rashid50 2018-04-06 17:55:48 UTC
Created attachment 141174 [details]
screenshot editors LO-61-dev
Comment 14 tariq.rashid50 2018-04-06 17:56:23 UTC
Created attachment 141176 [details]
comparing PDF exports from LO-61-dev
Comment 15 tariq.rashid50 2018-04-07 14:02:05 UTC
addition information

* When I am using only my MacBook Pro 2015 15" .. the colour difference between the exported PDFs is negligible (but the editor display colours are different with LO being paler than original PNG)

* When using a colour calibrated and fairly accurate NEC EA244UHD display the difference in the exported PDF colours is very different

The original bug was reported under the second scenario.

I'm not sure what this means?

It could mean the incorrect profile is being applied to the images on export which is disguised by a display with low colour range (sRGB) but is magnified by a display with a fuller gamut (AdobeRGB)?

In any case, MS Office seems to handle this correctly but there are 2 issues with LO and LO61-dev

 * display in editor view is paler than actual PNG
 * export PDFS have oversaturated colours

I hope this helps identify the issue.

As information I'd like to request a short description of what the current state of LO and colour profiles actually is, bugs aside.
Comment 16 Cor Nouws 2018-04-10 10:29:32 UTC
Created attachment 141256 [details]
screen print pdf's from three versions and docx in Libre - on Ubuntu

Screenprint on Ubuntu

From top left,  then clockwise:
PDF from LibreOffice 3304
PDF from LibreOffice daily2080409
PDF from Word
docx opened in LibreOffice daily

To be honest, I do not see much difference.
But the same (for me) applies to attachment 141165 [details].
Comment 17 Xisco Faulí 2018-04-10 18:12:20 UTC
I set this to NEW incorrectly...
Comment 18 Xisco Faulí 2018-05-31 11:09:02 UTC
Some work has been done to the PDF export recently...

Could you please try to reproduce it with a master build from http://dev-builds.libreoffice.org/daily/master/ ?
You can install it alongside the standard version.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build
Comment 19 tariq.rashid50 2018-05-31 20:15:21 UTC
Thanks Xisco - the problem is still here.

Attached is a screenshot comparing the PDF exports from MS Word (latest), LibreOffice 6.0.3.2 and the latest daily build downloaded 31May 2018 as per your link.

The colour in the MS Word exported PDF is correct. Both the LibreOffice exported PDFs have incorrect colour.
Comment 20 tariq.rashid50 2018-05-31 20:16:55 UTC
Created attachment 142460 [details]
comparing PDF export colours from MSWord, LO6, LO61 daily 31/05/2018

see comment related to Xisco's suggestion
Comment 21 tariq.rashid50 2018-05-31 20:18:19 UTC
Created attachment 142461 [details]
comparing PDF export colours from MSWord, LO6, LO61 daily 31/05/2018
Comment 22 eisa01 2018-06-14 20:36:56 UTC
I can confirm this.

The image is not rendered with the same colors if I export as PDF.
If I choose print and save as PDF using the in-built macOS system, it is the same color though.

Aside, if I do the test on Word I have the exact same behavior. The Word save as PDF produces an oversaturated image as well.

However, if I open the png image in Preview, make a Pages document with the image, open the LO odt with the image, open the LO print pdf export, take a screenshot, compare using the color picker in GIMP then LO and the print export does not render the same colors as Preview and Pages

Given Apple's history with color profiles I would trust them to have this correct.

Does LO have support for color profiles? Looks to be rendered in same colors on LO 3.3

Tested on Lenovo L220x monitor

Version: 6.2.0.0.alpha0+
Build ID: b292a27698e85fd9d60c03613c3b0c67835c4dc1
CPU threads: 2; OS: Mac OS X 10.12.6; UI render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2018-06-06_23:25:55
Locale: en-US (en_US.UTF-8); Calc: group threaded
Comment 23 eisa01 2018-06-14 20:38:52 UTC
Created attachment 142759 [details]
Screenshot LO vs print PDF vs Preview png vs Pages
Comment 24 QA Administrators 2021-03-16 04:29:03 UTC Comment hidden (obsolete)
Comment 25 eisa01 2021-04-11 16:30:10 UTC
This is still present

I am also wondering if this is independent of PDF export, because the image in the docx in attachment #2 is rendered with wrong colors inside LO (verified with Gimp)

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 465b8b0e9ad4b0c9c7701dee2820a99c5d00b5bf
CPU threads: 4; OS: Mac OS X 10.14.6; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 26 QA Administrators 2023-04-12 03:21:03 UTC Comment hidden (obsolete)
Comment 27 tariq.rashid50 2024-09-04 11:41:56 UTC
any progress on this?

I used 24.8.0.3 macOS today and the exported colour in a PDF doesn't match what is shown in the editor.

This time no special display ICC profiles were used.
Comment 28 tariq.rashid50 2024-09-04 11:53:42 UTC
Here is additional information using LiobreOffice 24.8.0.3 ARM on MacOS

Attached are
1. source LibreOffice document
2. source MS Word document

both have colours chosen by RGB hex code - not a colour picker

3. PDF export from Libreoffice
4. PDF export from MS Word

It seems the PDF exports match what MS Word is displaying, but the LibreOffice display is perhaps showing the wrong colours?
Comment 29 tariq.rashid50 2024-09-04 11:54:36 UTC
Created attachment 196220 [details]
LibreOffice source
Comment 30 tariq.rashid50 2024-09-04 11:54:53 UTC
Created attachment 196221 [details]
MSWord source
Comment 31 tariq.rashid50 2024-09-04 11:55:11 UTC
Created attachment 196222 [details]
LO exported PDF
Comment 32 tariq.rashid50 2024-09-04 11:55:45 UTC
Created attachment 196223 [details]
LO source
Comment 33 tariq.rashid50 2024-09-04 11:56:03 UTC
Comment on attachment 196220 [details]
LibreOffice source

edit - should be "Libreoffice exported PDF"
Comment 34 tariq.rashid50 2024-09-04 11:56:21 UTC
Created attachment 196224 [details]
screenshot showing all 4
Comment 35 Cor Nouws 2024-09-04 12:15:05 UTC
(In reply to tariq.rashid50 from comment #27)
> any progress on this?
If there would be, it was visible here, Tariq, so alas..
Thanks for your confirmation and clear screenshots.
(I do little with colour profiles etc, so didn't look into details)